This should be equalsIgnoreCase
This commit is contained in:
parent
dfdcc54313
commit
ec60af7186
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ public class ToggleCommand implements CommandHandler {
|
||||||
NpcImpl npc = context.parse(NpcEntryImpl.class).getNpc();
|
NpcImpl npc = context.parse(NpcEntryImpl.class).getNpc();
|
||||||
boolean enabled;
|
boolean enabled;
|
||||||
if (context.argSize() == 1) {
|
if (context.argSize() == 1) {
|
||||||
enabled = context.popString().equals("enable");
|
enabled = context.popString().equalsIgnoreCase("enable");
|
||||||
} else {
|
} else {
|
||||||
enabled = !npc.isEnabled();
|
enabled = !npc.isEnabled();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue