AFK β
A player goes AFK if they do nothing for a certain period of time
If a player is AFK, they receive a specific suffix
π Localization β
π Path localizations β language.yml β message.contact.afk
βοΈ Default
β
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>β Π’Ρ Π²Π΅ΡΠ½ΡΠ»ΡΡ Π² ΠΈΠ³ΡΡ"
afk:
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"
suffix
β
The suffix assigned to a player when they go AFK
format-true
β
Message when a player goes AFK
format-false
β
Message when a player returns
βοΈ Setting β
π Path message.yml β contact.afk
βοΈ Default
β
afk:
enable: true
range: -1
delay: 3000
ignore:
- "afk"
destination:
type: CHAT
ticker:
enable: true
period: 20
enable
β
Enables or disables the functionality of the module
range
β
How far in blocks the message will be displayed
Value | Explanation |
---|---|
-2 | The message will be sent to all players on the server and on Proxy |
-1 | The message will be sent to all players on the server |
0 | The message will be sent only to the sender |
Any number > 0 | The message will be sent to players whose distance from the sender is less than this number |
NOTE
If the range is greater than 0
, for example 100
, the recipients must also be in the same dimension as the sender
delay
β
How long (in ticks) a player must be inactive to go AFK
ignore
β
List of actions that are ignored and do not affect AFK status
Actions that can be ignored |
---|
Any command names |
chat - when a player types in chat |
quit - when a player logs out |
EXAMPLE
If I add the command tell
to the list and a player is AFK, they can use the tell
command without leaving AFK mode
destination
β
Where the message will be sent
HOW TO CHANGE THE DESTINATION?
Replace the value type: here
and restart FlectonePulse
using the /flectonepulse reload
command. Additional settings will appear automatically.
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 the chat | No |
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 |
Configuration for ACTION_BAR
destination:
type: ACTION_BAR
times:
stay: 60
times
β
Field | Explanation |
---|---|
stay | Time in ticks to hold the message |
Configuration for BOSS_BAR
destination:
type: BOSS_BAR
duration: 100
health: 1.0
overlay: PROGRESS
color: BLUE
play-boos-music: false
create-world-fog: false
darken-screen: false
duration
β
Duration of the message display
health
β
How full the boss bar will be
overlay
β
Type | Explanation |
---|---|
PROGRESS | Single line |
NOTCHED_6 | Divided into 6 parts |
NOTCHED_10 | Divided into 10 parts |
NOTCHED_12 | Divided into 12 parts |
NOTCHED_20 | Divided into 20 parts |
color
β
Display color
Type |
---|
PINK |
BLUE |
RED |
GREEN |
YELLOW |
PURPLE |
WHITE |
play-boos-music
β
Whether music will play with the message
create-world-fog
β
Whether fog will appear with the message
darken-screen
β
Whether the screen will darken with the message
Configuration for TITLE
(or SUBTITLE
)
destination:
type: TITLE (or SUBTITLE)
subtext: ""
times:
fade-in: 20
stay: 60
fade-out: 20
subtext
β
Message for the second part of the display. For example, if TITLE
is selected, subtext
will be displayed below it, and vice versa.
times
β
Field | Explanation |
---|---|
fade-in | Time in ticks for the message to appear |
stay | Time in ticks to hold the message |
fade-out | Time in ticks for the message to disappear |
Configuration for TOAST
destination:
type: TOAST
icon: "minecraft:diamond"
style: TASK
icon
β
Achievement icon, which can be any Minecraft item (must specify the full path)
style
β
Achievement type (TASK
regular, GOAL
goal, CHALLENGE
challenge)
WARNING
Not recommended for global messages
ticker
β
Updates every certain interval of time
enable
β
Whether to update or not
period
β
How often in ticks it should update
π Permissions β
π Path permission.yml β message.contact.afk
βοΈ Default
β
afk:
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 for any player |
FALSE | Available if granted separately (e.g., via LuckPerms) |
OP | Available for server operators |
NOT_OP | Available if granted separately (e.g., via LuckPerms) |
cooldown-bypass
β
Permission to bypass the cooldown between uses
sound
β
Permission to use sound