Skip to content

Commit

Permalink
Fix another IndexOutOfBounds exception
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 committed Mar 14, 2023
1 parent 8b4022a commit 83c65aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ else if (whitelistable.get().isExpirable())
else
message = locale.localize(INFO_WHITELISTED);
message.set("player-details", locale.localize(PLAYER_DETAILS))
.set("player", args.get(0))
.set("player", args.isEmpty() ? args.getPlayer().getDisplayName() : args.get(0))
.set("uuid", uuid.toString())
.send(args.getSender());
}
Expand Down

0 comments on commit 83c65aa

Please sign in to comment.