Flectone Logo FlectonePulse

/afk

Command to toggle AFK mode

afk

Attention

The command will not work if the AFK module is disabled

⚙️Setting

Path localizations → language.yml → message.afk
afk:
  enable: true
  aliases:
  - "afk"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

aliases

A list of aliases for using the command

ALIASES CAN BE ANYTHING

For example newcommand, newcommand_ru, ban, me etc.

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: 60

Parameters

FieldTypeExplanation
enablebooleanEnables the cooldown functionality
durationlongHow 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

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 permissions.yml → command.afk
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