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

🌍Localization
Pathafk:
suffix: " <color:#FFFF00>⌚</color>"
format_true:
global: "<gradient:#ffd500:#FFFF00>⌚ <player> is now afk"
local: "<gradient:#ffd500:#FFFF00>⌚ Now you're afk"
format_false:
global: "<gradient:#ffd500:#FFFF00>⌚ <player> isn't afk now"
local: "<gradient:#ffd500:#FFFF00>⌚ Now you're not afk"afk:
suffix: " <color:#FFFF00>⌚</color>"
format_true:
global: "<gradient:#ffd500:#FFFF00>⌚ <player> отошёл"
local: "<gradient:#ffd500:#FFFF00>⌚ Ты отошёл от игры"
format_false:
global: "<gradient:#ffd500:#FFFF00>⌚ <player> вернулся"
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
range: "SERVER"
delay: 3000
ignore:
- "afk"
destination:
type: "CHAT"
ticker:
enable: true
period: 20
sound:
enable: falseenable
Enables or disables the functionality of the module
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
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 |
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
ticker
Updating every specific interval of time
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
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