Allow true to be used in pause command instead of just on

This commit is contained in:
ajgeiss0702
2021-01-26 07:55:23 -07:00
parent 54e7eb36e6
commit bd67cfe095
@@ -150,7 +150,7 @@ public class ManageCommand extends Command {
sender.sendMessage(msgs.getBC("commands.pause.no-server", "SERVER:"+args[1]));
return;
}
srv.setPaused(args[2].equalsIgnoreCase("on"));
srv.setPaused(args[2].equalsIgnoreCase("on") || args[2].equalsIgnoreCase("true"));
sender.sendMessage(msgs.getBC("commands.pause.success",
"SERVER:"+srv.getName(),
"PAUSED:"+msgs.get("commands.pause.paused."+srv.isPaused())