Make /item not case sensitive

This commit is contained in:
okx-code
2024-11-14 01:39:54 +00:00
parent 4efd59249e
commit 9579054738

View File

@@ -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;