Afk
A player becomes AFK if they do nothing for a certain period of time

If a person is AFK, they are given a specific suffix

Also in the AFK suffix you can use the <time> placeholder to show how long the player has been in AFK mode
🌍 Localization
Pathafk:
suffix: " <color:#FFFF00>⌚</color>"
format_true:
global: "<gradient:#ffd500:#FFFF00>⌚ <nickname> is now afk"
local: "<gradient:#ffd500:#FFFF00>⌚ Now you're afk"
format_false:
global: "<gradient:#ffd500:#FFFF00>⌚ <nickname> isn't afk now"
local: "<gradient:#ffd500:#FFFF00>⌚ Now you're not afk"afk:
suffix: " <color:#FFFF00>⌚</color>"
format_true:
global: "<gradient:#ffd500:#FFFF00>⌚ <nickname> отошёл"
local: "<gradient:#ffd500:#FFFF00>⌚ Ты отошёл от игры"
format_false:
global: "<gradient:#ffd500:#FFFF00>⌚ <nickname> вернулся"
local: "<gradient:#ffd500:#FFFF00>⌚ Ты вернулся в игру"suffix
The suffix given to a player if they go AFK

format_true
Message if the player has stepped away
format_false
Message if the player has returned
⚙️ Setting
Pathafk:
enable: true
track_playtime: true
range: "SERVER"
delay: 36000
radius: 1.0
ignore:
- "afk"
destination:
type: "CHAT"
ticker:
enable: true
period: 20
sound:
enable: falseenable
Enables or disables the functionality of the module
track_playtime
Should time spent AFK count towards playtime (for /online and similar commands)
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 |
delay
How much time in ticks a player must do nothing to go AFK
radius
How far the player must move away from AFK spot to exit AFK mode
ignore
List of actions that are ignored and do not affect AFK mode
| Actions that can be ignored |
|---|
| Any command names |
chat - when a player writes in chat |
quit - when a player leaves |
If I add the command tell to the list and a player is in AFK mode, they can use the tell command and it will not remove them from AFK mode
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 |
ticker
Updating every specific interval of time
sound
Sound playback
🔐 Permissions
Pathafk:
name: "flectonepulse.module.command.afk"
type: "TRUE"
cooldown_bypass:
name: "flectonepulse.module.command.afk.cooldown.bypass"
type: "OP"
sound:
name: "flectonepulse.module.command.afk.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