This plugin lets you activate a maintenance mode on your BungeeCord as well as Spigot/Bukkit server, which will prevent players without a permission to join the server.
- Tested Minecraft Versions:
- Source Code:
Whatever version you want to use, just place the plugin inside your plugin folder of your server running Spigot or BungeeCord! (the BungeeCord version will manage maintenance for the whole proxyserver, putting it on single Spigot servers will only activate it on the specific ones).
You can choose, how long you want maintenance mode to be enabled or start a timer to enable it after a certain amount of minutes with global broadcasts in between.
Messages are customizable, you can also customize the playercount and even the server-icon (with a "maintenance-icon.png" in the server directory, not the plugin directory). It could look like this:
Found any bugs?
> Use the issue tracker
On BungeeCord you can only add players to the whitelist via adding their UUID to the config or by using the add command while they are online, because BungeeCord doesn't have OfflinePlayer support as Spigot has.
- "/maintenance <on/off>" will set the status of the maintenance mode
- "/maintenance reload" lets you reload the config file while the server is running
- "/maintenace <add/remove> <player>" allows specific players to join on the server even though maintenance is enabled
- "/maintenance whitelist" returns a list of all players on the maintenance whitelist
- "/maintenance timer starttimer <minutes>" will enable maintenance mode after the time is up
- "/maintenance timer endtimer <minutes>" will enable maintenance mode for the given time in minutes. After the time is up, it'll be disabled again
- "/maintenance update" remotely downloads the newest version of the plugin onto your server
- maintenance.admin - use the maintenance commands listed above
- maintenance.reload - use the "/maintenance reload" command
- maintenance.bypass - lets you bypass the maintenance mode
- maintenance.joinnotification - if enabled: sends a notification to you if a player tries to join the server while maintenance is enabled
IMPORTANT - If you are using the plugin on your proxyserver: You have to have these permissions on the proxy, not on the Bukkit servers! This can be done by putting them into the Bungee config.yml as seen here:
This or you have a permissions plugin, which also works across the Proxy/Bungee.
If you use it on a Spigot/Bukkit server, normal permission plugins should work (as well as being an operator).
If you are using the Spigot version of the plugin, you have to have ProtocolLib installed to use the custom server-icon and the playercount-messages! The rest however is also without it accessable.
For the Bungee version you don't need to have any other plugins installed.
Note that the Spigot version doesn't have MySQL support.Code (Text):
# Maintenance Plugin by KennyTV
# Version 2.2.1
# Enables maintenance-mode.
# The message shown in the multiplayer server list motd.
pingmessage: "&cMaintenance mode!%NEWLINE%&6We will be back soon!"
# Is shown at the top right corner of the server in the serverlist,
# where the playercount would normally be displayed.
# Is shown when you move your mouse above the text at the top right corner of the server in the serverlist,
# where the playercount would normally be displayed.
playercounthovermessage: "&cCurrently under%NEWLINE%&cmaintenance"
# Will be shown, when a player tries to join on the server without the permission.
kickmessage: "&cThe server is currently under maintenance!%NEWLINE%Try again later!"
# Some self explanatory messages
no-permission: "&cYou do not have the permission to execute that command."
maintenance-activated: "&6Maintenance mode is now activated."
maintenance-deactivated: "&6Maintenance mode is now deactivated."
starttimer-broadcast-mesage: '&8[&eMaintenance&8] &7Maintenance mode will be enabled in &6%MINUTES% minutes&7.'
endtimer-broadcast-mesage: '&8[&eMaintenance&8] &7Maintenance mode will be disabled in &6%MINUTES% minutes&7.'
# If using the timer command: In what intervalls before enabling/disabling maintenance there will be a broadcast.
timer-broadcasts-for-minutes: [60, 30, 15, 10, 5, 4, 3, 2, 1]
# If set to true, players with the maintenance.joinnotification permission will receive a message,
# that a player tried to join the server while maintenance is enabled.
join-notification: "&e%PLAYER% &ctried to join the server."
# If set to true, the server icon will be changed to maintenance-icon.png in the Bungee main/base-folder.
# Only enable MySQL if you really know what you are doing.
# You need to have a table with the two following columns: 'setting' and 'value'.
If you have the ServerListPlus plugin on your BungeeCord/Spigot server, MaintenanceMode will toggle its status. If you enable maintenance, the ServerListPlus motd will be disabled and then reenabled, when you disable maintenance to prevent any issues with them overriding each other.
Only available for the BungeeCord version!
By enabling MySQL in the config, you can even connect multiple proxy-servers to a set value in your database, so you won't have to enable/disable maintenance on each proxy by hand!
The table will be automatically created by the plugin.
A rating or a review would be highly appreciated and a creation of one (and also for a spigot account) is fairly easy!
MaintenanceMode - Bungee AND Spigot support! 2.2.1
Lets you activate a maintenance mode on your BungeeCord as well as Spigot/Bukkit server!