Made the restart bar synchronous
This commit is contained in:
parent
6a5dda7028
commit
b4d4023e9c
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ public class ScheduledRestartCommand extends TBMCCommandBase {
|
|||
sender.sendMessage("Scheduled restart in " + ticks / 20f);
|
||||
ScheduledServerRestartEvent e = new ScheduledServerRestartEvent(ticks);
|
||||
Bukkit.getPluginManager().callEvent(e);
|
||||
restarttask = Bukkit.getScheduler().runTaskTimerAsynchronously(MainPlugin.Instance, () -> {
|
||||
restarttask = Bukkit.getScheduler().runTaskTimer(MainPlugin.Instance, () -> {
|
||||
if (restartcounter < 0) {
|
||||
restarttask.cancel();
|
||||
restartbar.getPlayers().stream().forEach(p -> restartbar.removePlayer(p));
|
||||
|
|
Loading…
Reference in a new issue