RestartAnnounce

Tired of having to spam the chat with "Quick restart restart!" just for players to notice you're restarting the server? RestartAnnounce is a plugin that uses Minecraft's scoreboard system to announce server restarts with a visible timer. When the timer hits 0, your server will shut down.
RestartAnnounce has been deployed on the BeastsMC servers for over a month now with no issues or bug.
Features
- Innovative way to alert players of scheduled restarts using scoreboards as a timer
- Automatically shuts down the server when timer hits 0
- Schedule restarts to occur in the future without any staff being online
- Schedule restarts to occur at set intervals
- Interval restarts don't display unless there is less than 60 minutes until shutdown
Commands
/sr <seconds>: Schedule a restart to occur in <seconds> /sr reload: Reload the plugin's config.yml, also cancels any active scheduled restarts or interval restarts. /sr time: Check the remaining time to the next planned restart. /cancelrestart: Cancel a restart that is currently scheduled
Permissions
restartannounce.admin - Allow the usage of /sr and /cancelrestart restartannounce.reload - Allows the usage of /sr reload restartannounce.time - Allows for the usage of /sr time
Startup Script
RestartAnnounce merely shuts down your server. For the plugin to start up the server after it called a shutdown would be very hacky. However, you can modify your startup script to start the server up for you. In your server directory, create a file called run.sh:
#!/bin/sh SERVERDIR="/path/to/the/server/directory" screen -S "Minecraft" bash -c "sh $SERVERDIR/loop.sh"
Then create another file called loop.sh:
#!/bin/sh STARTUPLINE="java -Xincgc -Xmx2G -jar craftbukkit.jar" while true do $STARTUPLINE echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!" echo "Rebooting in:" for i in 5 4 3 2 1 do echo "$i..." sleep 1 done echo "Rebooting now!" done
To start your server, use: ./run.sh
-
View User Profile
-
Send Message
Posted Jun 27, 2013can you make it /sr cancel or /sr c ?
-
View User Profile
-
Send Message
Posted Jun 24, 2013@moisesortiz
Yes, I plan to add that either next or soon. Having some github issues atm, but once that's fixed I'll be back on track.
EDIT: Issues fixed. I'll start on it soon.
-
View User Profile
-
Send Message
Posted Jun 24, 2013@Jaynix_
Shuts down. If you're on a Debian-based Linux system, I can send you a startup file system that will start your server up after the shutdown.
-
View User Profile
-
Send Message
Posted Jun 24, 2013Used on my server mc.worldofminecraft.info, Interval of every 8 hours could you add a command to check the time left to the next restart? In this case /sr time? and also to be able to see it via console
-
View User Profile
-
Send Message
Posted Jun 24, 2013Does it shutdown the server, or restart?
-
View User Profile
-
Send Message
Posted Jun 23, 2013@danisblack9
Sounds like another plugin. I feel like adding it to this plugin would make it's features too "branched out." I wouldn't be against making a plugin with that function, but I won't be able to get started until either Monday or Tuesday.
-
View User Profile
-
Send Message
Posted Jun 23, 2013Can you please add?
It's a good idea to use minecraft scoreboard system to delay automatic server restars, but could you add, an event manager, or so we can put custom messages?
Example: /restartannounce <name> <delay> /restartannounce <dropparty> <60sec>
Or maybe you could add this at config.yml, but still to keep autorestart announce in configured amount of time. I hope you kind of understand what I mean! :) tnx
-
View User Profile
-
Send Message
Posted Jun 22, 2013Restarting on scheduled intervals has been added. The HUD timer does not display until there are 60 minutes until restart.
-
View User Profile
-
Send Message
Posted Jun 22, 2013@hdnerds
The typo has been fixed by a pull request, the updated .jar just hasn't been uploaded/approved yet.
-
View User Profile
-
Send Message
Posted Jun 22, 2013There is a typo when I Do /sr, it's says: A restas has been scheduled.... it should be restart. Thanks, and add a feature where you can have it restart every, say 12 hours?
-
View User Profile
-
Send Message
Posted Jun 21, 2013@Arthorien
Which message? The one sent when the restart is scheduled? Also, allowing regular and configurable restarts is on my todo list.
-
View User Profile
-
Send Message
Posted Jun 21, 2013@hdnerds
The plugin stops your server with the BukkitAPI rather than commands. Your server will stop when the timer reaches 0.
-
View User Profile
-
Send Message
Posted Jun 21, 2013Will this also issue the stop command?
-
View User Profile
-
Send Message
Posted Jun 20, 2013Hey there! I recently started making Bukkit plugin videos, and I came across this one and though "why not do one on this plugin?" It's a small plugin but I could still do a video to sort of show what the timer and schtuff would be like. Message me if you would put the video on this page and I'll send you the link, but it won't be done for about a week. Also, I know this is random, but why aren't the skeletons burning in the screenshot?
-
View User Profile
-
Send Message
Posted Jun 20, 2013Can you add a config file for change the message and if it's possible an auto-restart for shutdown the server at a specific time (editable in the config file or via a command or both ) I use your plugin and it's very useful and it's a great idea.
-
View User Profile
-
Send Message
Posted Jun 19, 2013@xSkyer
Not sure if you're able to view it since it has yet to be approved, but http://dev.bukkit.org/bukkit-plugins/restartannounce/files/1-restart-announce-v1-0/
You could also download the source from github and compile it yourself if you don't want to wait for the bukkitdev team to approve the file.
-
View User Profile
-
Send Message
Posted Jun 19, 2013@Marium0505
Works on everything. Only dependency is that you're running Bukkit.
-
View User Profile
-
Send Message
Posted Jun 19, 2013Wow! Nice idea! Can you give me download link?
-
View User Profile
-
Send Message
Posted Jun 19, 2013Does it require anything? And does it work on all control panels, such as Multicraft and does it work on Spigot?
Apologies for a lot of questions, but this is highly useful, and I would love to be able to use it. :)