EasyStaff Docs
  • EasyStaff
  • Commands and Extra permissions
    • Commands
    • Extra permissions
  • Maintenance Module
  • Freeze Module
Powered by GitBook
On this page

Maintenance Module

Here you can see all the info you need abuot the maintenance module.

PreviousExtra permissionsNextFreeze Module

Last updated 3 months ago

Main command > /maintenance <on|off|add|remove|addd|Kickall> <

Permissions:

easystaff.maintenance.* -> all permissions for maintenance

easystaff.maintenance.toggle -> turn on/off the maintenance

easystaff.maintenance.add -> add a player to the maintenance whitelist

easystaff.maintenance.remove -> remove a player from the maintenance whitelist

easystaff.maintenance.kickall -> kick everyone that is not on the whitelist

Sometimes you will see arguments <> means that it is required otherwise the command will just give a error and () is optional.

Enable Maintenance:

To enable maintenance you do /maintenance on . That will enable maintenance and if you are not on the list off whitelisted players you cannot join.

You can edit the message in the config.yml:

join-denied-message: # Message the player get when they try to join while maintenance is enabled
  - "&cMaintenance Enabled"
  - "&c"
  - "&fStaff has enabled maintenance, you can't join."
  - "&fGet more info about the server in our Discord!"

Disable Maintenance:

To disable maintenance you do /maintenance off . That will disable the maintenance and everyone can join again.

Add players to the Maintenance whitelist:

To add players to the maintenance whitelist you do /maintenance add <player> . When maintenance is enabled these players can join. When you join the server while maintenance being enabled and you are on the whitelist you get this message: [Staff] You have joined while maintenance being enabled

You can also add players to whitelist in the config.yml

whitelist: #Players that can join while maintenance is enabled
  - Notch

Remove players from the Maintenance whitelist:

To remove players from the maintenance whitelist you do /maintenance remove <player> . Now the can't join when maintenance is enabled

Kick all players online:

To kick everyone that is not on the maintenance whitelist you do /maintenance kickall this will kick everyone that is not on the maintenance whitelist.

Full config:

#Maintenance Function
#This is a sort of whitelist but better!
#You can add/remove players, Kick all the players that are not added with /maintenance add, kick message, join message. And more!
#You can edit it below.
maintenance: false #Enable/Disable the maintenance
kick-message: "&cStaff members have enabled maintenance" #Message players get when they get kicked
join-denied-message: # Message the player get when they try to join while maintenance is enabled
  - "&cMaintenance Enabled"
  - "&c"
  - "&fStaff has enabled maintenance, you can't join."
  - "&fGet more info about the server in our Discord!"
whitelist: #Players that can join while maintenance is enabled
  - Notch