*mumble* Noobquestion *mumble*

Discussion in 'Plugin Development' started by Sosser, Mar 25, 2011.

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

    Sosser

  2. Offline

    Joey Clover

    Make a file that extends 'BlockListener'. Then add this:

    Code:
        @Override
        public void onBlockRightClick(BlockRightClickEvent event) {
            Material playersItem = event.getItemInHand().getType();
            if(playersItem == Material.DIAMOND_PICKAXE){
                //DO STUFF HERE.
            }
        }
    Hope it helps ;)
     
  3. Offline

    retsrif

    onBlockRightClick was removed. It's now only onPlayerInteract I think... or something like that...
     
  4. Offline

    Edward Hand

  5. Offline

    Sosser

    My bad, i obviously am quite bad at searching :p
     
  6. Offline

    iPhysX

    I just looked at your signature, you like maths? xD
     
Thread Status:
Not open for further replies.

Share This Page