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.
Wow, I don't want to type "/downtime-full" every time. How about "/dt full" or "/dt partial"?
Got all of it back =D . Just working on fixing the listeners.
:O That is bad, hope you get enough of it back :|
Will do guys, I have to decompile my own plugin because I lost all of my class files.
Thanks!
An update would be nice =) It doesnt work with latest version of Bukkit
Can you please update this plugin? :)
Plugin is broken with the latest R5 and R6 versions of Bukkit FYI.
@dakoslug I've been thinking that there is a emergencydowntime.check .
Thank you for the answer.
F3rr0X
@F3rr0X
I believe it was default OP . Would you like one? Let me double check.
Edit: NEVERMIND THERE IS. It's emergencydowntime.check
Thanks for reminding me!
Hey nice plugin.
Is there a permission node for the /downtime check?
F3rr0X
@dakoslug
To the project. I can turn this from a beta into a full release.
@predawnia
Please keep all things related to your bug report in the ticket.
@dakoslug
This is after issuing the command /downtime-full
@Technius Add you on what?
@predawnia
Thank you for the report. Is this when you do a command on my plugin ?
Edit: Added ticket : http://dev.bukkit.org/server-mods/emergencydowntime/tickets/1-bukkit-rb-1597-encountering-message-spam/
Bukkit RB#1597
Encountering message spam
15.12 08:37:15 [Server] INFO [EmergencyDowntime] bapekrins13 was kicked due to Downtime. 15.12 08:37:15 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 15.12 08:37:15 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 15.12 08:37:15 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) 15.12 08:37:15 [Server] INFO at net.minecraft.server.NetworkListenThread.a(SourceFile:94) 15.12 08:37:15 [Server] INFO at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:39) 15.12 08:37:15 [Server] INFO at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:113) 15.12 08:37:15 [Server] INFO at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129) 15.12 08:37:15 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) 15.12 08:37:15 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) 15.12 08:37:15 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:265) 15.12 08:37:15 [Server] INFO at me.dakoslug.EmergencyDowntime.EmergencyDowntimeplayerListener.onPlayerJoin(EmergencyDowntimeplayerListener.java:27) 15.12 08:37:15 [Server] INFO at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java:185) 15.12 08:37:15 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.disconnect(SpoutNetServerHandler.java:560) 15.12 08:37:15 [Server] INFO at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.java:128) 15.12 08:37:15 [Server] INFO at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:161) 15.12 08:37:15 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) 15.12 08:37:15 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) 15.12 08:37:15 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:272) 15.12 08:37:15 [Server] INFO at com.zford.jobs.listener.JobsPlayerListener.onPlayerQuit(JobsPlayerListener.java:48) 15.12 08:37:15 [Server] INFO at com.zford.jobs.Jobs.removePlayer(Jobs.java:235) 15.12 08:37:15 [Server] INFO at com.zford.jobs.Jobs.save(Jobs.java:254) 15.12 08:37:15 [Server] INFO at com.zford.jobs.dao.JobsDAOMySQL.save(JobsDAOMySQL.java:112) 15.12 08:37:15 [Server] INFO java.lang.NullPointerException 15.12 08:37:15 [Server] SEVERE Could not pass event PLAYER_QUIT to Jobs 15.12 08:37:15 [Server] INFO [MCBans] bapekrins13 has disconnected! 15.12 08:37:15 [Multicraft] bapekrins13 ran command Message of the Day 15.12 08:37:15 [Connect] User bapekrins13, IP 67.173.241.2 15.12 08:37:15 [Server] INFO [MCBans] bapekrins13 has connected!
@gyroninja
Unclear explanations = unclear help, and is disregarded or queried on.
What I believe you were trying to say was what I said earlier,
@Technius
It would be a good decision to add me. I could add random comments around the source to help you understand things. It's a bit funny how my plugins don't get any attention and others do... XD
to use spaces do what your doing so the command is /down time then inside the brackets check if args[0] equals the thing after the space.
@spinner0205
It might be so, because I haven't done any check procedures where it's like turn off downtime-full when downtime-kickall is initiated. I'll look into it.
@Technius
Okay I'll look into adding spaces in the command. Thanks.
Ok I seem to have another bug. I enabled downtime in the server then turned it off using downtime-off several times however each time my members without the exempt permission still cannot connect. I check using downtime-check and it reports being off. The only way to fix it is to restart the server. It may be because I used different commands at once such as downtime-kickall followed by downtime-full followed by downtime-partial before finally attempting turning it off.
Shorten the commands... Would be easier. And the command list would go down.
/downtime check
/downtime ver
/downtime kickall
etc..