Fixed /tc /mod and similar commands, the subcommands list and the restart bar #27

Merged
NorbiPeti merged 5 commits from dev into master 2016-12-30 23:05:41 +00:00
Showing only changes of commit b4d4023e9c - Show all commits

View file

@ -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));