Flectone Logo FlectonePulse

Afk

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

afk global message

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

🌍Localization

Path
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"
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 afksuffix

format_true

Message if the player has stepped away

format_false

Message if the player has returned

⚙️Setting

Path
afk:
  enable: true
  range: "SERVER"
  delay: 3000
  ignore:
  - "afk"
  destination:
    type: "CHAT"
  ticker:
    enable: true
    period: 20
  sound:
    enable: false

enable

Enables or disables the functionality of the module

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

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
Example

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

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

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

How to use the ticker?

Replace false with true

Restart FlectonePulse using the command /flectonepulse reload

Additional parameters for configuring the delay will appear automatically

enable

Whether to update

period

How often to update, measured in ticks

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

FieldTypeExplanation
enablebooleanEnables sound playback
volumefloatSound volume from 0 to 1.0
pitchfloatSound pitch from 0 to 1.0
categoryStringCategory from MASTER, MUSIC, RECORD, WEATHER, BLOCK, HOSTILE, NEUTRAL, PLAYER, AMBIENT, VOICE
nameStringSound name, for example minecraft:entity.llama.spit

🔐Permissions

Path
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

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

Last updated on

Edit on GitHub

On this page

Authors of page