If rightclick block & block is Red Wool. Do

Discussion in 'Plugin Development' started by McCastleWars, Feb 6, 2013.

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

    McCastleWars

    I'm trying to get it so when the player is in the arraylist admin & he rightclicks a red wool. it sends the "admin" the x, y, z for the block. I can get the blocks x, y, z. Its prob cause its a metadata for red wool.
     
  2. Offline

    jtjj222

    You probably want to create an EventHandler for the PlayerInteractEvent. You will then want to check the Action (event.getAction() I think) and make sure it is either right-click block or right-click air. You can also check the item in hand using event.getItem().
     
  3. Offline

    McCastleWars

    I dont want to check the item in hand.
     
  4. Offline

    jtjj222

    Do you want the block he clicked?
     
Thread Status:
Not open for further replies.

Share This Page