forked from SteamWar/SteamWar
Update Persistent.queueRestart to toggle
This commit is contained in:
@@ -221,8 +221,13 @@ public class Persistent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int queueRestart(CommandContext<CommandSource> context) {
|
public int queueRestart(CommandContext<CommandSource> context) {
|
||||||
restartQueued = true;
|
if (restartQueued) {
|
||||||
context.getSource().sendRichMessage("§eRestart queued§8.");
|
restartQueued = false;
|
||||||
|
context.getSource().sendRichMessage("§eRestart dequeued§8.");
|
||||||
|
} else {
|
||||||
|
restartQueued = true;
|
||||||
|
context.getSource().sendRichMessage("§eRestart queued§8.");
|
||||||
|
}
|
||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user