Fix time restriction checking

This commit is contained in:
Brokkonaut
2018-08-20 18:25:40 +02:00
parent eb0b969477
commit 710de5b35a

View File

@@ -394,7 +394,7 @@ public class CommandsHandler implements CommandExecutor {
if (sender.isOp() || logblock.hasPermission(sender, "logblock.ignoreRestrictions")) { if (sender.isOp() || logblock.hasPermission(sender, "logblock.ignoreRestrictions")) {
return true; return true;
} }
if (rollbackMaxTime > 0 && (params.before > 0 || params.since > rollbackMaxTime)) { if (rollbackMaxTime > 0 && (params.since <= 0 || params.since > rollbackMaxTime)) {
sender.sendMessage(ChatColor.RED + "You are not allowed to rollback more than " + rollbackMaxTime + " minutes"); sender.sendMessage(ChatColor.RED + "You are not allowed to rollback more than " + rollbackMaxTime + " minutes");
return false; return false;
} }