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
my server almost never lags but once the restart notice comes up the players say its unbareable to play and this plugin is for some reason the cause of the lag, the very secound that it counts down from an hour it starts lagigng like crazy, other than that its an ok plugin
@pandapipino
yes
Does this plugin still works on 1.7.9? Thanks
Can you add, that we can change what is written in the scoreboard with the config.yml ?
Hi i run a Tekkit Lite 0,6,5 server minecraft version 1.4.7, and i was wondering if this mod is compatable with tekkit lite and mcpc?
@Grudwo
To give the command "/sr time", give the permission "restartannounce.time" to the player group you wish to have access to the command.
i have often crashes, ty for this plugin!
Using the plugin - I like it, but my players would like to have it displayed for only the last twenty minutes, not 60 minutes. How would I change this with the config?
Also, how exactly would I allow the players to use the "/sr time" command to see how long till the restart? The Permissions section above is a little cryptic. Sorry.
First, i want to say what a great job you did with this plugin. Really GJ.
Now, its missing one feature, Once i start the countdown, the scoreboard will only be shown to players currently at server. So if someone joins, and the countdown is started, they wont see it. U should make it visible to everyone on server and new players joining.
Like this http://dev.bukkit.org/bukkit-plugins/scoreboardannouncer/
That is visible to every player, when u leave, then join, its there. Now u should do same thing with Announcer, when its started, its visible even to new joined players, until the server restarts.
@jacklink01
The build was rejected once because I forgot to remove a hidden file my OS auto-generated from the .jar before I uploaded it. If you can't wait, you could always compile it from the Github source.
@BeastsMC
BukkitDev often confuses me. My plugin update was submitted and accepted all within the time that yours is still waiting lol.
@BeastsMC
Great! Thank you!
@jacklink01
Done. I've uploaded the file and it should be approved within a day.
Actually, It would be great if we could have a config to run a couple console commands before the restart like kickall to ensure all players have a safe exit so that the server can run the shutdown process without them there.
Can you make it do /save-all before it restarts?
Kinda makes the timer pointless if I have to wait till it gets close to zero to do a save of the map manually
@BeastsMC
that would be awesome!
@Thepom360
That's actually impossible without using something like a server wrapper. However, I could post guides with this plugin to modify startup files to auto restart the server.
can you make it so it restarts the server not shut it Down?
Love this, you could also put to configure it at a determined time like i want to restart at 12PM