Skip to content

Commit

Permalink
Mark history entries as read if user has access to account
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Apr 28, 2021
1 parent f705683 commit 30359d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/wfector/command/CommandRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -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();
Expand All @@ -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;
}
Expand Down

0 comments on commit 30359d8

Please sign in to comment.