Flectone Logo FlectonePulse

/unwarn

Command to remove a warning from a player

command unwarn


🌍 Localization

Path localizations → language.yml → command.unwarn
unwarn:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player does not exist"
  null_id: "<color:#ff7171><sprite_or:!?:gui:icon/chat_modified>Warn with this id not found"
  not_warned: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player is not warned"
  lower_weight_group: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>You cannot unwarn a player with equal or higher permissions"
  reasons:
    default: "You have been unwarned on the server"
  format: "<color:#98FB98>🔓 <moderator> unwarned the player <display_name> <fcolor:1><hover:show_text:\"<fcolor:1>ID: <id><br>Date: <date><br>Moderator: <moderator><br>Reason: <reason>\">[INFO]</hover>"
unwarn:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не найден"
  null_id: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Предупреждение с таким айди не найдено"
  not_warned: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не имеет предупреждений"
  lower_weight_group: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Ты не можешь снять предупреждение с игрока с такими же или большими правами"
  reasons:
    default: "С тебя сняли предупреждение"
  format: "<color:#98FB98>🔓 <moderator><color:#98FB98> снял предупреждение с игрока <display_name> <fcolor:1><hover:show_text:\"<fcolor:1>Айди: <id><br>Дата: <date><br>Модератор: <moderator><br>Причина: <reason>\">[ПОДРОБНЕЕ]</hover>"

null_player

Message if the entered player is not found

null_id

Message if the entered moderation ID is incorrect

not_warned

Message if the entered player has no warnings

lower_weight_group

Message if the command is executed by a player with a group lower than the player being moderated

reasons

A list with keys and values, where the key is a word and the value is a specific reason

You can add your own reasons, for example
random_kek: "Random reason"

Then if I write /unwarn Notch random_kek, the reason will be Random reason

If no reason is specified, default will be used

format

Message upon removing a warning


⚙️ Setting

Path command.yml → unwarn
unwarn:
  enable: true
  check_group_weight: true
  range: "PROXY"
  aliases:
  - "unwarn"
  destination:
    type: "CHAT"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

check_group_weight

Whether player groups will be checked. If the player being moderated has a higher role than the command sender, the command will not execute and a lower_weight_group error will occur

range

How far in blocks the message will be displayed

ValueExplanation
WORLD_TYPEThe message will be sent only to players who have the permission flectonepulse.world.type.dimension_name
WORLD_NAMEThe message will be sent only to players who have the permission flectonepulse.world.name.world_folder_name
PROXYThe message will be sent to all players on the server and on the Proxy
SERVERThe message will be sent to all players on the server
PLAYERThe message will be sent only to the sender
any number greater than 0, for example range: 100The message will be sent to players whose distance between them and the sender is less than this number. Players must also be in the same world as the sender

aliases

A list of aliases for using the command

ALIASES CAN BE ANYTHING

For example newcommand, newcommand_ru, ban, me etc.

destination

Where the message will be sent

TypeExplanationRequires additional configuration?
ACTION_BARMessage above the player's inventoryYes
BOSS_BARMessage at the top of the screenYes
BRANDMessage in F3No
CHATMessage in chatNo
TEXT_SCREENMessage anywhere on the screenYes
TITLEFull-screen messageYes
SUBTITLEFull-screen message (bottom line)Yes
TAB_HEADERMessage in TAB (top)No
TAB_FOOTERMessage in TAB (bottom)No
TOASTMessage in the top right corner (achievement)Yes

cooldown

Usage delay

sound

Sound playback


🔐 Permissions

Path permission.yml → command.unwarn
unwarn:
  name: "flectonepulse.module.command.unwarn"
  type: "OP"
  cooldown_bypass:
    name: "flectonepulse.module.command.unwarn.cooldown.bypass"
    type: "OP"
  sound:
    name: "flectonepulse.module.command.unwarn.sound"
    type: "TRUE"

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to NON-operators of the server

cooldown_bypass

Permission to ignore the cooldown between uses

sound

Permission to use the sound

On this page

Authors of page