Maintenance Manager
Maintenance Manager is the ultimate maintenance plugin which makes maintenances times on your server way easier! For the moment, it provides several exclusivities I havn't found anywhere else. It is very simple to use and to configure (even if the configuration is optionnal). I want to make it the best maintenance plugin for Bukkit!
Current version: 2.2
Features:
- /maintenance command manages the maintenance time: /maintenance on|off
- Maintenance schedule. Schedule your maintenance time and advert players with /maintenance on [time before maintenance time] (Optionnal, in minutes)
- Schedule interruption with /maintenance cancel.
- Define the duration of your maintenance with /maintenance on [time before maintenance time] <duration> (Optionnal, in minutes)
- Kicks non-op players and players who don't have the permission to log-in during the maintenance.
- Prevents non authorized players to log-in during maintenance.
- Changes the motd on the multi-player screen when the server is in maintenance.
- Commands can be casted from console or in-game.
- Custom server icon for maintenance.
- Server reload support.
- You can reload the config without restarting the server or reloading it entirely with /maintenance reload.
- Full permissions supported.
- Full texts customization.
- You can choose the number of slots available during a maintenance.
- Manage your plugins in real-time without having to reload or restart the server with /maintenance [enable|disable] (plugin name). Disabled plugins stay disabled after restart or reload until you re-enable it.
- Countdown in motd when a maintenance has a duration planned.
- Aliases on /maintenance command. See the Commands section for further informations.
- Backups on command.
- Check the CPU and RAM usage at any time with /cpu and /ram
Commands:
/maintenance is the main command. You'll have to add the following arguments:
Aliases: /mmode , /maint
- on: turn on the maintenance mode
- <schedule in minutes> (optionnal) Note: The schedule would cancel if you reload the server before the maintenance begin.
- <duration of the maintenance in minutes> (optionnal)
- cancel: cancels a scheduled maintenance.
- off: turn off the maintenance mode
- reload: reload the plugin's config file
- enable <plugin name>: enable the selected plugin.
- disable <plugin name>: disable the selected plugin. Note: If you are not sure about the plugin name, type /plugins.
- backup: Saves the server folder into a zip file located in the "backups" folder.
- /cpu : displays the current cpu usage in percentage.
- /ram : displays the current ram usage in percentage and in Mb
Permissions:
maintenance.*: Give acces to all MaintenanceManager commands.
maintenance.maintenance: Allows to start or stop a maintenance.
maintenance.maintenance.cancel: Allows to cancel a scheduled maintenance.
maintenance.backup: Allows to use the /maintenance backup command.
maintenance.access: Allows to enter the server during maintenance mode (and don't be kicked when the maintenance begin)
maintenance.reload: Allows to reload the config file.
maintenance.manage.plugins: Allows to disable or enable plugins.
maintenance.cpu: Allows to use the /cpu command.
maintenance.ram: Allows to use the /ram command.
Of course, OP players have these permissions.
Configuration:
By default, the config file looks like this:
#---------- MAINTENANCEMANAGER CONFIGURATION ----------# maintenanceModeOnStart: false remainingSeconds: 0 maxPlayersOnMaintenance: 10 disabledPlugins: [] #----------------------# #General messages # #----------------------# maintenanceStart: '&2&o&lMaintenance time!' maintenanceEnd: '&6&o&lMaintenance finished!' maintenanceMessage: '&c&nThe server is currently under maintenance. Come back later.' kickMessage: '&c&nThe server is currently under maintenance. Come back later.' loginMessage: '&6&o&lThe server is currently in maintenance mode!' cpuUsage: '&3CPU usage : &2&l<cpu>%' ramUsage: '&3RAM usage : &2&l<ram%>% || <ram> MB' #----------------------------------------------------# #----------------------------------------------------# #----------------------# #MOTD related # #----------------------# maintenanceMOTD: '&6&o&lMaintenance mode...' maintenanceWithDurationMOTD: '&6&o&lMaintenance mode...<n>&2&l<minutes> &r&eminutes remaining!' maintenanceWithDurationMOTDLessThanOneMinute: '&6&o&lMaintenance mode...<n>&2Less than one minute remaining!' #----------------------------------------------------# #----------------------------------------------------# #----------------------# #Schedule related # #----------------------# scheduleMessage: '&5&oMaintenance in &4&l<minutes> &5&ominutes!' scheduleMessageSeconds: '&5&oMaintenance in &4&l<seconds> &5&oseconds!' scheduleCanceled: '&a&oThe scheduled maintenance have been canceled!' scheduleLessThanOneMinute: '&5&oMaintenance in less than one minute!' #----------------------------------------------------# #----------------------------------------------------# #----------------------# #Plugins management # #----------------------# pluginDisabled: '&6&l<plugin> &a&osuccessfully disabled!' pluginEnabled: '&6&l<plugin> &a&osuccessfully enabled!' #----------------------------------------------------# #----------------------------------------------------# #----------------------# #Backup related # #----------------------# backingUpMessage: '&e&oBacking up. The server will lag briefly.' backupSuccess: '&2&o&lBackup success!' #----------------------------------------------------# #----------------------------------------------------# #----------------------# #"Already" messages # #----------------------# maintenanceAlreadyLaunched: '&cThe server is already in maintenance mode.' noMaintenanceLaunched: '&cMaintenance mode is already off.' noMaintenanceScheduled: '&cNo maintenance scheduled...' maintenanceAlreadyScheduled: '&cA maintenance is already scheduled.' alreadyBackingUp: '&cPlease wait the end of this backup before backing up again!' #----------------------------------------------------# #----------------------------------------------------# #----------------------# #Error messages # #----------------------# inputErrorSchedule: '&cThe time value for schedule must be an integer!' inputErrorDuration: '&cThe time value for duration must be an integer!' pluginManagementArgumentErrorDisable: '&cPlease name the plugin you want to disable!' pluginManagementArgumentErrorEnable: '&cPlease name the plugin you want to enable!' #----------------------------------------------------# #----------------------------------------------------#
Note: You can use the "<n>" tag to break the line.
To set your custom icon for maintenances, just put an image named maintenance-icon.png in the main folder of your server. The default one auto-creates if the plugins doesn't find any maintenance-icon.png in that folder. Note: Your icon must be a 64X64 png image!
Advice: If you don't want to change the icon, copy-paste server-icon.png and rename it into maintenance-icon.png
Important: If your server is running without icon, maintenance-icon.png will be displayed even out of a maintenance!
To add colors to your texts, just put '&' and a character from 0-9 and a-f before the words you want to color. Please refer you to this page to know formatting codes.
Setup:
To set up Maintenance Manager, simply download the jar file and put it into "plugins" folder. And now enjoy the uniqueness of MaintenanceManager!
Sources:
Take a look at the code here.
Feedback:
Your opinion is important for me! Please write a comment below and let me know what you think, what you would like to see in the plugin or what you would like to change! Please report me any bug you have. :) I want to make the best maintenance plugin for Bukkit, and to do that, I need your feedback! Thank you for your time.
Donate!
If you really enjoy this plugin and you want to reward me for my work, please donate! I would be very grateful!
Hello, its a very good plugin but when I enable a Maintenance and a player try to connect to the server, there are two error messages : One about the plugin Jobs and one about the Plugin MultiInv.
In reply to Forge_User_52182181:
@Tiegertosch
I did not try, but there's no reason it wouldn't work for bungeecord aswell. Just put the plugin in the "plugins" folder of the hub server. ;)
Your Plugin helps alot on my Server!
Can you add bungeecord support?
@ImAFlyingPancake
Thanks but for my spigot server it said the server stopped responding and it restarted... But that's fine. Thanks again for the fast reply!
@CoolLord22
Thank you for your report. For the first issue, it's a simple mistake that you can correct by yourself in the config ("backingUpMessage"). I'll correct it in the default config for the future updates.
Secondly, the server doesn't crash when you perform a backup. It just freezes while the files are being copied to prevent map corruptions for example. (Technically, the backup process is running on the main thread) If you wait enough time, the server should respond again when it's ended. The time it will take will depend on the size of your server folder.
Great plugin but 1 or 2 issues that I've found. When you do /maint backup, it says brievely instead of briefly...2nd issue, in console it says the server stopped responding (after starting backup) and the server crashed...is there a way to prevent it or...?
@CloudeLecaw
Thank you for reporting me this issue. I mistyped the permission :x I'll post a fix soon. ;)
Finally! The 2.0 version is here! The plugin has been fully recoded ;) Just waiting for Bukkit to approve... BTW, a new github repo is now online, check it out :)
Hello when I try to use this plugin on 1.7.10 it works but the perms don't work for some reason
Do you know perhaps why that don't I have the newest version on my server from github
@SilentDarknessMC
I'm not working anymore on this plugin. However some versions (not approved by Bukkit for some reasons) that I tried to upload that fixes some problems like permissions not working are available on Github.
@JEREMSPEED
Are you still working on updating this plugin?
You guys should add a ping message
@Weret
Just delete the maintenance-icon. I think that would work
There is a little bug on hosted servers with the /maintenance command : http://puu.sh/biflJ/2ecc468f71.png On local it work normally : http://puu.sh/bifk3/543da5a8b8.png
Hi, can you add turn off for that incon when i turn off maintenance mode?
@Luke199
I know how to use separate classes. It's a choice to make it in a simple one. And it works great like that! ;)
Wouldn't recommend having the plugin all in one class.. if you don't know how to use separate classes I recommend you look it up and recode the plugin for it to work like that.
Hi, Players are not supposed to be Kick on maintenance start? They are not on Spigot 1.7.9 R03.
@thequestingbeast
Thank you again! Permissions should work properly in the code but I forgot to add them all in the plugin.yml! Wow why did I forget that?! I'll fix it in 1st priority in 1.04.
I took your suggestion in consideration and I'll add a message on login in 1.04.