Flectone Logo FlectonePulse

/maintenance

Command to enable maintenance mode

command maintenance
command maintenance server


🌍 Localization

Path localizations → language.yml → command.maintenance
maintenance:
  server_description: "<color:#ff7171>The server is under maintenance"
  server_version: "Maintenance"
  kick: "<color:#ff7171>★ The server is under maintenance"
  format_true: "<fcolor:1>★ You have <fcolor:2>enabled <fcolor:1>maintenance on the server"
  format_false: "<fcolor:1>★ You have <fcolor:2>disabled <fcolor:1>maintenance on the server"
maintenance:
  server_description: "<color:#ff7171>В настоящее время проводятся технические работы"
  server_version: "Технические работы"
  kick: "<color:#ff7171>★ На сервере ведутся технические работы"
  format_true: "<fcolor:1>★ Ты <fcolor:2>включил <fcolor:1>технические работы на сервере"
  format_false: "<fcolor:1>★ Ты <fcolor:2>выключил <fcolor:1>технические работы на сервере"

server_description

Messages when viewing the server if maintenance mode is enabled

server_version

Server version name if maintenance mode is enabled

kick

Reason for being kicked from the server when maintenance mode is turned on

format_true

Message when maintenance mode is enabled

format_false

Message when maintenance mode is disabled


⚙️ Setting

Path command.yml → maintenance
maintenance:
  enable: true
  turned_on: false
  aliases:
  - "maintenance"
  destination:
    type: "CHAT"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

turned_on

Enabling/Disabling server maintenance mode

aliases

A list of aliases for using the command

ALIASES CAN BE ANYTHING

For example newcommand, newcommand_ru, ban, me etc.

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

cooldown

Usage delay

sound

Sound playback


🔐 Permissions

Path permission.yml → command.maintenance
maintenance:
  name: "flectonepulse.module.command.maintenance"
  type: "OP"
  join:
    name: "flectonepulse.module.command.maintenance.join"
    type: "OP"
  cooldown_bypass:
    name: "flectonepulse.module.command.maintenance.cooldown.bypass"
    type: "OP"
  sound:
    name: "flectonepulse.module.command.maintenance.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

join

Permission to connect to the server during maintenance

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