ServerMaintenance
This Plugin whitelist the server with a custom kick message and a custom MOTD! This will require Java7!
____________________________________________________________________________
Features
- Custom Welcome MOTD
- Custom Maintenance MOTD
- Custom kick message when trying to log in while maintenance mode is on
- When the player is logged in and the admin turns on the maintenance mode and the player gets kicked (same kick message is used for when they try to log-in)
- Color Code Support on every custom message
- NEW Custom stop messages
- NEW New line support on config with something NEWLINE something else
- NEW Command to automatically download latest version
- Update Checker
____________________________________________________________________________
Installation
- Download the latest file
- Drag and drop the plugin in your server's plugins folder
- Start the server
- Stop the server
- Edit the config
- Start it up and enjoy! :)
____________________________________________________________________________
Commands and Permissions
Command | Function | Permission |
---|---|---|
/maintenance toggle | Toggles The Maintenance Mode | servermmaintenance.toggle |
/maintenance toggledelay | Toggles The Maintenance Mode With Delay! | servermmaintenance.toggle |
/maintenance add <PlayerName> | Add a player to the exempt list | servermmaintenance.player.add |
/maintenance remove <PlayerName> | Removes a player from the exempt list | servermmaintenance.player.remove |
/maintenance reload | Reloads the configuration | servermmaintenance.reload |
/maintenance stop | Stops the server completely | servermmaintenance.stop |
/maintenance update | Updates to the newest version | servermmaintenance.update |
*No Command | Can Login while maintenance mode is on | servermmaintenance.bypass |
*No Command | Recieve a notification when an update is availabe | servermmaintenance.update |
*No Command | All Permissions | servermmaintenance.* |
Help page is available when no command is found.
____________________________________________________________________________
Configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #Custom Welcome MOTD (Multi-MOTD Support) WelcomeMOTD: - '&6Server &5Hello' - '&4Server: &aAnother MOTD!' #Use the Welcome MOTD useWelcomeMOTD: true #Custom Maintenance MOTD (Multi-MOTD Support) MaintenanceMOTD: - '&8Server: &9Maintenance!' - '&7Server: &1Another maintenance Message!' #Use Maintenance MOTD useMaintenanceMOTD: true #The Kick Message KickMessage: '&4Server Is Under Maintenance!' #This will broadcast the message for the delay command the seconds before the delay is over BroadcastTime: - 1 - 2 - 3 - 4 - 5 - 10 - 15 - 30 - 60 #The format of the seconds BroadcastSecondsMessage: '&4Maintenance Mode In %t Seconds!' #The format of the second BroadcastSecondMessage: '&4Maintenance Mode In %t Second!' #The format of the minute BroadcastMinuteMessage: '&4Maintenance Mode In %t Minute!' #Global message when the servermaintenance mode enables BroadcastOnMaintenanceEnableMessage: '&4Server Is Now In Maintenance Mode' #Global message when the servermaintenance mode disables BroadcastOnMaintenanceDisableMessage: '&bServer Is No Longer In Maintenance Mode' #This will check for updates CheckForUpdates: true #Use only the exempt list UseExemptOnly: false #Don't change this. It will automatically change enabled: true #-NEW- Message when server stops StopMessage: '&6Server Has Stopped! NEWLINE Come Back Later &l:)'! |
____________________________________________________________________________
Video
Youtube Tutorial in Spanish
Send me a link if you want your video here.
____________________________________________________________________________
To-Do
- Reload Message
- Use MOTD Boolean
- Kick all ops except if they are on the allowed-players file (toggled)
____________________________________________________________________________
If you want to suggest something, post below! If you have a comment about this plugin whether you like it or not, post below!
@Qazsew123
Thanks! Will update it when it needs to update. I am still alive;)
This Plugin is amazing, I think it is the best of it's kind! Please keep up to date!
@linopa2076
Do /maintenance reload after editing the config file. That is another alternative.
@linopa2076
Because this plugin uses persistance (Meaning it can survive /reload, so it won't exit maintenance mode if you /reload while testing other plugins) you must completely stop the server before changing any configurations. Shouldn't be too much of a pain since you only have to configurate it once.
If you do not stop the server it will keep resetting the configuration to previous states.
EDIT: The configuration can also reset to default if the config file is invalid, maybe you missed a " or used a special character in one of your messages that requires a different codification.
The config keeps resetting itself to the default.
@PatoTheBest
Ok, thanks for the reply
@AlphaVoids
I created a private BungeeMaintenance plugin for my server. BungeeCord API and Bukkit Api are very different, so no, it won't work.
Will this work with the bungeecord.jar? I run a server network and want to know if this will work as i will need to put this on my bungeecord server in order to see the motd
@willkurr
Added to my To-do.
@PatoTheBeast Can you set it so it kicks all ops unless they are on the allowed file?
@PatoTheBest
Oh really? Great I only need one plugin then. Thanks so much!
@BlackFing85
This plugin does that.....
@PatoTheBest
Ok. In the plugin you can say to randomly pick a MOTD that you set (You can set as many MOTD's as you want!) And it will randomly put a MOTD everytime you refresh the server list!
@BlackFing85
Does the other motd have something special? EDIT: I will add that in the future. Right now I have been working on TNT Tag.
@PatoTheBest
Because it's conflicting with my other plugin that does MOTD! Just the welcome but if my server goes into Maintenance mode then I would want this plugin to take it over.
@BlackFing85
May I ask why do you want it to be disabled?
@PatoTheBest
Ok cool thanks! Please update the plugin so we can disable the Welcome MOTD!
@BlackFing85
The exempt list is the allowed player txt file. It is to add a low rank player that doesn't have the permission. You add the exempt permission(maintenance.bypass) to a group such as admin.
Where is the exempt list? And can you add the exempt list to have Permission Group Support? So if I put Admin in the exempt list it will exempt all players in the Admin Group? Thanks! P.s I use Group Manager!
@BurnedRice280
Ok, I should try it :) EDIT: I am not sure if that fixed the problem, but it's fixed now. :D EDIT 2: And now, it fails again...
@PatoTheBest
That should be a good think to add. :) EDIT: It's still a good idea to add that.