/warn
Command to issue a warning to a player

🌍Localization
Pathlocalizations → language.yml → command.warn
warn:
null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player does not exist"
null_time: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Incorrect time"
lower_weight_group: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>You cannot warn a player with equal or higher permissions"
reasons:
default: "You have been warned on this server"
server: "<color:#ff7171>🔒 <fcolor:2><moderator> <fcolor:1>gave a warning to <fcolor:2><player> <fcolor:1><hover:show_text:\"<fcolor:1>ID: <id><br>Date: <date><br>Time: <time><br>Remaining time: <time_left><br>Moderator: <moderator><br>Reason: <reason>\">[INFO]</hover>"
person: "<color:#ff7171>🔒 You are warned a <time>"warn:
null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не найден"
null_time: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Невозможное время"
lower_weight_group: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Ты не можешь выдать предупреждение игроку с такими же или большими правами"
reasons:
default: "Ты получил предупреждение"
server: "<color:#ff7171>🔒 <fcolor:2><moderator><fcolor:1> выдал предупреждение игроку <fcolor:2><player> <fcolor:1><hover:show_text:\"<fcolor:1>Айди: <id><br>Дата: <date><br>Время: <time><br>Осталось: <time_left><br>Модератор: <moderator><br>Причина: <reason>\">[ПОДРОБНЕЕ]</hover>"
person: "<color:#ff7171>🔒 Ты получил предупреждение на <time>"null_player
Message if the entered player is not found
null_time
Message if an impossible time duration is entered
lower_weight_group
Message if the command is executed by a player with a group lower than the player being moderated
reasons
A list of keys and values where the key is a word and the value is a specific reason
random_kek: "Random reason"Then if I type /warn player 1d random_kek, the reason will be Random reason
If no reason is specified, default will be used
server
Message broadcasted to everyone
person
Message for the player receiving the warning
⚙️Setting
Pathcommand.yml → warn
warn:
enable: true
suggest_offline_players: true
check_group_weight: true
range: "PROXY"
time_limits:
0: -1
aliases:
- "warn"
actions:
2: "mute <target> 1h"
3: "ban <target> 1h"
5: "ban <target>"
destination:
type: "CHAT"
cooldown:
enable: false
sound:
enable: falseenable
Enables or disables the functionality of the module
suggest_offline_players
If enabled, suggests nicknames of all players who have been on the server; otherwise, only nicknames of players who are currently online.
This only affects the text suggestion.
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
| Value | Explanation |
|---|---|
WORLD_TYPE | The message will be sent only to players who have the permission flectonepulse.world.type.dimension_name |
WORLD_NAME | The message will be sent only to players who have the permission flectonepulse.world.name.world_folder_name |
PROXY | The message will be sent to all players on the server and on the Proxy |
SERVER | The message will be sent to all players on the server |
PLAYER | The message will be sent only to the sender |
any number greater than 0, for example range: 100 | The 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 |
time_limits
Time limits based on the sender's group weight. The key is the group weight, and the value is the maximum moderation time in milliseconds (1 second = 1000 milliseconds)
time_limits:
20: 35000
50: 100000- If a player has a group weight of
10, the command will NOT be executed - If a player has a group weight of
20, the maximum time will be35000 - If a player has a group weight of
40, the maximum time will also be35000 - If a player has a group weight of
50or higher, it will be100000
For unlimited time, use the value -1
range
How far in blocks the message will be displayed
| Value | Explanation |
|---|---|
WORLD_TYPE | The message will be sent only to players who have the permission flectonepulse.world.type.dimension_name |
WORLD_NAME | The message will be sent only to players who have the permission flectonepulse.world.name.world_folder_name |
PROXY | The message will be sent to all players on the server and on the Proxy |
SERVER | The message will be sent to all players on the server |
PLAYER | The message will be sent only to the sender |
any number greater than 0, for example range: 100 | The 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 |
actions
A list where the key is the number of warnings and the value is the action to be executed
Then I should enter 10: ban <target> ohh. The action will trigger if the player reaches 10 active warnings.
destination
Where the message will be sent
| Type | Explanation | Requires additional configuration? |
|---|---|---|
ACTION_BAR | Message above the player's inventory | Yes |
BOSS_BAR | Message at the top of the screen | Yes |
BRAND | Message in F3 | No |
CHAT | Message in chat | No |
TEXT_SCREEN | Message anywhere on the screen | Yes |
TITLE | Full-screen message | Yes |
SUBTITLE | Full-screen message (bottom line) | Yes |
TAB_HEADER | Message in TAB (top) | No |
TAB_FOOTER | Message in TAB (bottom) | No |
TOAST | Message in the top right corner (achievement) | Yes |
To change this, replace the value type: here and restart FlectonePulse using the /flectonepulse reload command; additional settings will appear AUTOMATICALLY
Change
Replace the value type: here
Restart FlectonePulse using the /flectonepulse reload command
Additional parameters for delay settings will appear automatically
cooldown
Usage delay
Usage
Replace false with true
Restart FlectonePulse using the /flectonepulse reload command
Additional parameters for delay settings will appear automatically
cooldown:
enable: true
duration: 60Parameters
| Field | Type | Explanation |
|---|---|---|
enable | boolean | Enables the cooldown functionality |
duration | long | How many ticks must pass between uses |
sound
Sound playback
Usage
Replace false with true
Restart FlectonePulse using the command /flectonepulse reload
Additional parameters for sound configuration will appear automatically
sound:
enable: true
volume: 1.0
pitch: 1.0
category: "HOSTILE"
name: "minecraft:entity.llama.spit"Parameters
| Field | Type | Explanation |
|---|---|---|
enable | boolean | Enables sound playback |
volume | float | Sound volume from 0 to 1.0 |
pitch | float | Sound pitch from 0 to 1.0 |
category | String | Category from MASTER, MUSIC, RECORD, WEATHER, BLOCK, HOSTILE, NEUTRAL, PLAYER, AMBIENT, VOICE |
name | String | Sound name, for example minecraft:entity.llama.spit |
🔐Permissions
Pathpermission.yml → command.warn
warn:
name: "flectonepulse.module.command.warn"
type: "OP"
cooldown_bypass:
name: "flectonepulse.module.command.warn.cooldown.bypass"
type: "OP"
sound:
name: "flectonepulse.module.command.warn.sound"
type: "TRUE"name
Permission name
type
Permission type
| Type | Explanation |
|---|---|
TRUE | Available to any player |
FALSE | Available to no one, must be granted separately (e.g., using LuckPerms) |
OP | Available to server operators |
NOT_OP | Available to NON-operators of the server |
cooldown_bypass
Permission to ignore the cooldown between uses
sound
Permission to use the sound
Last updated on
Edit on GitHub
FlectonePulse