This should be equalsIgnoreCase

This commit is contained in:
envizar 2024-12-29 14:43:19 +03:00
parent dfdcc54313
commit ec60af7186

View file

@ -25,7 +25,7 @@ public class ToggleCommand implements CommandHandler {
NpcImpl npc = context.parse(NpcEntryImpl.class).getNpc();
boolean enabled;
if (context.argSize() == 1) {
enabled = context.popString().equals("enable");
enabled = context.popString().equalsIgnoreCase("enable");
} else {
enabled = !npc.isEnabled();
}