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!
@Randoro93
Sorry for late reply, Are you using Java 7 (not Java 6)? If you are, is there any other plugin that handles MOTD? If you are not sure, List all of your plugins.
Got this error.
http://pastebin.com/8vUFh1wG
@EvilWosby
Will add it later, but will require ProtocolLib. Might make a new project as an extension for this plugin for protocol messages and modify online players int.
Is it possibe that you can add like You know if a server is out-dated etc, and you see 1.5.2(If the server is 1.5.2) On the left of the connection bars well if you can make it say MAINTENANCE or a configurable message that would be great!
I know this is possible because theres a plugin that can edit that.
@MyNameIsHariK
Thanks!
@PatoTheBest
You Sir, Is awesome for making a brillian plugin ;)
feedback would be apreciated
800 downloads :o
700 Downloads! You Guys Are AWESOME!
@Bjarnootjuh
Replace the %s With %t (sorry but %t stands for time in my plugin)
@PatoTheBest
I changed it in the config, it now looks like:
And this is what I get: http://gyazo.com/759f39373e5549656dd46dbb4cece8d1
@Bjarnootjuh
Did It Work?
@Bjarnootjuh
Try and replace %s with %t
@Bjarnootjuh
Try and replace %s with %t
Delay command works, but the countdown doesn't. It says: ... %s seconds!. And if it goes into maintenance mode, nobody is kicked.
New Version Is Available!
Delayed command COMPLETE! Sorry but it was really hard to make it because I had to make a repeating task to subtract a second from the countdown every 20 ticks and check if the config contains the integer that matches the countdown so it can broadcast the seconds, and I had to make a delayed task so it can cancel the repeating task after the countdown reaches to 0. So yeah, that part is complete. Im working on the custom message from config (Maintenance Mode In %t Seconds) and save the mode when you restart your server. Thanks for taking your time to read this.
-Pato
I`m Back! NEW VERSION FOR 1.6 IN DEVELOPMENT!
@revilosmith1999
Are you using Java 7? Sorry for the late reply.
Could you update to work with 1.6 please!?
@rolandostar
Thanks! I'm on vacations again so I'll be working on the plugin in about a week. Meanwhile, I'll be checking comments frequently. Thanks again!
-Pato