Skip to content

Commit

Permalink
EnchantCommand: Make enchantment name non case sensitive (CloudburstM…
Browse files Browse the repository at this point in the history
…C#1892)

(cherry picked from commit f5f3c7d)
  • Loading branch information
PetteriM1 authored and wode490390 committed Dec 5, 2021
1 parent 659896d commit f941318
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public boolean execute(CommandSender sender, String commandLabel, String[] args)
}

public int getIdByName(String value) throws NumberFormatException {
value = value.toLowerCase();
switch (value) {
case "protection":
return 0;
Expand Down

0 comments on commit f941318

Please sign in to comment.