Skip to content

Command /afk โ€‹

Command to toggle AFK mode afk

ATTENTION

The command will not work if the AFK module is disabled

โš™๏ธ Setting โ€‹

๐Ÿ“‚ Path command.yml โ†’ afk

โš–๏ธ Default โ€‹

yml
afk:
  enable: true
  aliases:
    - "afk"
  cooldown:
    enable: false
  sound:
    enable: false

enable โ€‹

Enables or disables the functionality of the module

aliases โ€‹

List of aliases for using the command

ALIASES CAN BE ANYTHING

For example, newcommand, ะฝะพะฒะฐัะบะพะผะฐะฝะดะฐ, ban, me, etc.

cooldown โ€‹

Usage cooldown

FieldTypeExplanation
enablebooleanEnables the cooldown functionality
durationlongHow many ticks must pass between uses

HOW TO USE COOLDOWN?

Replace false with true and restart FlectonePulse using the /flectonepulse reload command. Additional cooldown settings will appear AFTER RELOADING.

The cooldown configuration will look like this:

yaml
cooldown:
  enable: true
  duration: 60

sound โ€‹

Sound playback

FieldTypeExplanation
enablebooleanEnables sound functionality
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

HOW TO USE SOUND?

Replace false with true and restart FlectonePulse using the /flectonepulse reload command. Additional sound settings will appear AFTER RELOADING.

The sound configuration will look like this:

yaml
sound:
  enable: true
  volume: 1.0
  pitch: 1.0
  category: "HOSTILE"
  name: "minecraft:entity.llama.spit"

๐Ÿ” Permissions โ€‹

๐Ÿ“‚ Path permission.yml โ†’ command.afk

โš–๏ธ Default โ€‹

yml
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 for any player
FALSEAvailable if granted separately (e.g., via LuckPerms)
OPAvailable for server operators
NOT_OPAvailable if granted separately (e.g., via LuckPerms)

cooldown-bypass โ€‹

Permission to bypass the cooldown between uses

sound โ€‹

Permission to use sound