mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Make /item not case sensitive
This commit is contained in:
@@ -23,7 +23,7 @@ public class ItemUseMenu extends BaseCommand {
|
||||
ItemUseGUI gui = new ItemUseGUI(p);
|
||||
gui.showItemOverview(p.getInventory().getItemInMainHand());
|
||||
} else {
|
||||
Material mat = Material.getMaterial(material);
|
||||
Material mat = Material.matchMaterial(material);
|
||||
if (mat == null) {
|
||||
p.sendMessage(ChatColor.RED + "The item " + material + " does not exist");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user