Maintenance

0 Downloads

Maintenance

Provides basic functions to inform your players if the server is under maintenance.

Features

  • Allows the server administrator(s) to set the server to maintenance mode.
  • Displays a message on the client to inform them about what is going on.
  • Optionally kicks all players.
  • Optionally executes MySQL query when maintenance mode is toggled (for website status etc).

Commands

/maintenance [MESSAGE] - (de)activates the maintenance mode.

If MESSAGE is not provided the default message will be displayed. A confirmation message will be shown in the server console and ingame. Also works in console.

Permissions Support

  • Permissions (Ex)
  • Bukkit Permissions

Permission Nodes

# allows a player/group to toggle maintenance mode on/off
maintenance.toggle

# players/groups with this permission won't be kicked
maintenance.immune

Configuration maintenance/config.cfg:

# defines the default maintenance message
defaultmsg=The server is currently under maintenance.

# defines whether the server kicks players on entering maintenance mode
kickplayers=true

# defines whether ops are able to toggle maintenance mode
opstoggle=false

# defines whether ops are immune
opsimmune=true

# defines if the plugin executes the queries below
mysql=false

# MySQL connection data
mysql-host=host
mysql-port=port
mysql-user=user
mysql-password=pw
mysql-database=dbc

# MySQL query that is executed when the maintenance mode is turned on
mysql-query-on=UPDATE `status` SET maintenance='true' LIMIT 1

# MySQL query that is executed when the maintenance mode is turned off
mysql-query-off=UPDATE `status` SET maintenance='false' LIMIT 1

Thanks to

  • Rollese for requesting new features and bringing the project back.
  • stkeroro for the original request.