EmergencyDowntime
EmergencyDowntime
This plugin has been updated for full release.
Features
Features:
What this plugin basically does is puts the server on "emergency mode" It kicks all non-op players out of the server and stops non-op players from joining. The only players that can remain in the server during emergency mode are OPs and the players with permission to be exempt from emergency mode. It allows server admins to do what they have to do without having to take care or worry about the players. It prevents further damage and frustration to be done. Instead of just stopping you're server for awhile to prevent players from entering, you can use this plugin. Please visit our other pages for more details.
Usage
Basic usage: Usage subject to change, we'll do our best to update this page
Commands:
/ed build - Disables building (use /ed off to disable)
/ed full - Put the server on Emergency mode or (if the server was already in emergency mode) put it on normal mode for everybody to join.
/ed help - List commands
/ed off - Turns off both full downtime and partial downtime!
/ed partial - Put the server on partial emergency mode. It stops non-op players from joining the server BUT does not kick the players that are non-op in the server currently.
/ed check -Check if server is in downtime!
/ed ver - Find what version you are running!
/ed kickall Kicks everybody out of the server (including OPs and possibly you too) and stops them from entering. .
/ed reload Allow for persistant downtime during reloading. Can only be used when /ed full is on. (use /ed off to make this false)
HOW TO USE TIMED COMMANDS
Timed commands can only be used for the following commands
- /ed kickall
- /ed partial
- /ed full
- /ed build
How to actually use timed commands: When you wish to use any of the commands above, first type them out and then add how many seconds the task should be delayed.
Example use: /ed full 30 Full downtime will be enabled in 30 seconds.
Permission
Permission nodes. SuperPerms only
emergencydowntime.check (Allows player to do /downtime-check)
emergencydowntime.kickall (Allows player to do /downtime-kickall
emergencydowntime.ver (Allows player to see version of EmergencyDowntime
emergencydowntime.partial (Allows player to do /downtime-partial
emergencydowntime.off (Allows player to turn off downtime)
emergencydowntime.full (Allows player to do /downtime-full. Allow full downtime basically.)
emergencydowntime.exempt (Allows player to be exempt from partial/full downtime)
emergencydowntime.reload (Allows player to use /ed-reload)
emergencydowntime.build (Allows player to use /ed build)
Config File
Features in the Config File (Allows changes in kickmessages and other messages within EmergencyDowntime. Also allows the ability to change colors of the messages)
Values;
Kickmessage - is the value used for kicking someone. (The kick message)
OPExempt - message sent to OPs who remain in the server during "downtime"
PartialDowntimeMsg - sent to all players during partial downtime
reload - true or false value, whether persistant downtime is enabled or not. (toggle using /downtime-partial)
How to change the colors of the messages.
MAKE SURE YOU LEAVE THE QUOTATIONS ON IN THE CONFIG VALUES
Use the standard Minecraft Color codes found here.
Example of use '&2You Have been Kicked From The Server'
Support
Please create a ticket for this plugin and make sure you are descriptive! Also don't forget to post a comment saying you have created a ticket and give a brief description of the error/bug.
If you need help with keeping the non-op from joining then look at the onlogin method in the player listener class on ultrabans plugins github.
@dakoslug
Cool thanks! This will work perfectly with my backup script.
Can you integrate a way to kick everybody out, like a /downtime-all or something. This would prevent EVERYBODY from joining until it is reversed. this would allow our server to stay up (we have a server uptime percentage meter) yet actually be down for backups.
Thanks!
EDIT: I suppose if my opts.txt is empty and I don't add the exempt status on the permissions files then that would work just like that... thanks!
@TechJawa
It should work, however we are a bit buggy right now. The config file works, just the /downtime-full kicks all non-OP but allows them to enter :/. We're on it!
Anybody test this on MC 1.0 yet? I'd like to add this to our server.
Cool :D
@ghost1227
Why thank you! You got any suggestions for the plugin? , (as long as it fits the plugin lol).
This definitely sounds interesting. Would certainly make life easier in some situations... server migrations and top-secret staff-run builds come to mind.
I am intrigued by this plugin and would like to subscribe to your newsletter.