Skip to content

Commit

Permalink
compare names, and not object ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Sep 3, 2024
1 parent f561d7c commit ffa4e01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void view(CommandSender sender, @ArgName("player") @Optional @Suggestion(
return;
}

if (target == sender) {
if (target.getName().equalsIgnoreCase(sender.getName())) {
personal(target);

return;
Expand Down

0 comments on commit ffa4e01

Please sign in to comment.