Solved Calling an Item by its Name?

Discussion in 'Plugin Help/Development/Requests' started by PrimeRobot, Aug 11, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    PrimeRobot

    Code:
        @EventHandler
        public static void Tank (InventoryClickEvent event) {
            Player player = (Player) event.getWhoClicked();
                if (event.getCurrentItem().getType().equals((Object)Material.IRON_CHESTPLATE))  {
    Is there any way I could specify an Item by the Item's name?
    (Changing it so that instead of getting the Material, you get the Item's name?
     
  2. @PrimeRobot Naming conventions, and why are you casting Object?
     
Thread Status:
Not open for further replies.

Share This Page