perf: we can just equalsIgnoreCase

This commit is contained in:
Breno A. 2024-06-09 10:00:07 -03:00
parent 85ca8777c9
commit 3d00abcc91

View File

@ -131,7 +131,7 @@ public final class TrialAvatarActivityCommand implements CommandHandler {
translate(
sender, "commands.trialAvatarActivity.success_reward", Integer.parseInt(param)));
} else {
if (!param.toLowerCase().equals("all")) {
if (!param.equalsIgnoreCase("all")) {
CommandHandler.sendMessage(
sender, translate(sender, "commands.trialAvatarActivity.invalid_param"));
return;