Making an item id display as the actual material

Discussion in 'Plugin Development' started by MajorSkillage, Oct 4, 2014.

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

    MajorSkillage

    is there a way so instead of
    Code:
    if(p.getItemInHand().getTypeId() == 1){
    String name = "Stone";
    }
    p.sendMessage("You must be holding " + name + " to pvp!");
    
    i could just use something else instead of having to add that for every single item? ._. i am sure some epic bukkit developer made a utility class for this someone plz tell me how!! :I
     
  2. Offline

    teej107

  3. Offline

    CraftCreeper6

Thread Status:
Not open for further replies.

Share This Page