Advanced Maintenance
Advanced Maintenance
Informational
this plugin adds two commands: /am off and /am on. If you use /am on, all of the players on your server that do not have the permission am.bypass, will be kicked with a configurable message. When Advanced Maintenance is enabled, your MOTD will be changed to something you can set in the config. All players withouth the permission am.bypass will be kicked, and no one without the permission am.join won't be able to join anymore.
Commands
Command | Function | Permission |
---|---|---|
/am on | toggles Maintenance mode on | am.toggle |
/am off | toggles Maintenance mode off | am.toggle |
Permissions
for the permissions for the commands, see the "Commands" header. If you want a player to be able to join the server, though it is in maintenance mode, use am.join If you want a player not to be kicked when maintenance mode is enabled, give him the permission am.bypass
Configuration
The default configuration file looks like this:
#the defaultMotd is the MOTD displayed when Advanced Maintenance is disabled # the kickMessage is the message that displays when you get kicked by this plugin. # the maintenanceMotd is message that will be the MOTD while your server is in Maintenance Mode # remember to put '' around your strings that you fill in! defaultMotd: 'this is a minecraft server' kickMessage: '&6The server is under maintenance!' maintenanceMotd: '&6Maintenance!'
Here you can set the DefaultMOTD, the kickMessage and the MaintenanceMOTD, everything has color support (use &) for example, you could do this:
#the defaultMotd is the MOTD displayed when Advanced Maintenance is disabled # the kickMessage is the message that displays when you get kicked by this plugin. # the maintenanceMotd is message that will be the MOTD while your server is in Maintenance Mode # remember to put '' around your strings that you fill in! defaultMotd: ' &3Join this server!' kickMessage: "&6You can't join the server due to maintnance!" maintenanceMotd: '&6Maintenance!'
This is more or less like mine