diff --git a/src/main/java/com/wfector/command/CommandRunner.java b/src/main/java/com/wfector/command/CommandRunner.java index 9a589e1..6f7a69e 100644 --- a/src/main/java/com/wfector/command/CommandRunner.java +++ b/src/main/java/com/wfector/command/CommandRunner.java @@ -147,6 +147,7 @@ public boolean onCommand(final CommandSender sender, Command cmd, String label, } int page = 1; if(args.length > 1) { + markRead = false; boolean hasPage = false; try { page = Integer.parseInt(args[args.length - 1]); @@ -181,6 +182,7 @@ public boolean onCommand(final CommandSender sender, Command cmd, String label, sender.sendMessage(plugin.getMessage("history-others-not-allowed", "username", userName)); return true; } + markRead = true; } userId = target.getUuid(); userName = target.getName(); @@ -190,8 +192,6 @@ public boolean onCommand(final CommandSender sender, Command cmd, String label, sender.sendMessage(plugin.getMessage("page-not-found", "page", args[args.length - 1])); return true; } - - markRead = false; } else { markRead = true; }