Solved What happened to Material.GOLD_PICKAXE?

Discussion in 'Bukkit Help' started by cube_smasher, Jun 12, 2015.

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

    cube_smasher

    I'm writing a plugin right now, and I noticed that Material.GOLD_PICKAXE does not work! Is GOLD_PICKAXE now longer a material? Please help me on this, thanks!
     
  2. Offline

    LordDarthBob

    @cube_smasher
    Odd. What version of Bukkit/Spigot are you including in your build path?
     
  3. Offline

    cube_smasher

    Im using Craftbukkit version 1.8.7
     
  4. Offline

    LordDarthBob

    @cube_smasher
    That's strange, it seems to work for me.
    [​IMG]

    What problems are you experiencing while trying to access it?
     
  5. Offline

    cube_smasher

    if(event.getPlayer().getItemInHand().getType().equals(Material.GOLD_PICKAXE))
    This is how I am using it.

    I fixed it, I had imported the server material thing. not org.bukkit.material;
    Thanks for the help, I saw it in the picture you posted and then realized my mistake.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 12, 2016
Thread Status:
Not open for further replies.

Share This Page