Skip to content

Commit

Permalink
fixed index out of bounds issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BlitzOffline committed Jan 2, 2025
1 parent eba4866 commit cf907d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void execute(final @NotNull CommandSender sender, final @NotNull List<Str
}

if (viewer == null) {
plugin.sms(sender, Messages.PLAYER_IS_NOT_ONLINE.message().replaceText(PLAYER_REPLACER_BUILDER.replacement(args.get(2)).build()));
plugin.sms(sender, Messages.PLAYER_IS_NOT_ONLINE.message().replaceText(PLAYER_REPLACER_BUILDER.replacement(args.get(1)).build()));
return;
}

Expand Down

0 comments on commit cf907d4

Please sign in to comment.