Made the restart counter show seconds...

This commit is contained in:
Norbi Peti 2016-12-23 12:39:24 +01:00 committed by GitHub
parent 60d6a03236
commit e793571845

View file

@ -43,7 +43,7 @@ public class ScheduledRestartCommand extends TBMCCommandBase {
Bukkit.spigot().restart();
}
if (restartcounter % 200 == 0)
Bukkit.broadcastMessage("§c-- The server is restarting in " + restartcounter);
Bukkit.broadcastMessage("§c-- The server is restarting in " + restartcounter / 20 + " seconds!");
restartbar.setProgress(restartcounter / restarttime);
restartcounter--;
}, 1, 1);