Right click on sign?

Discussion in 'Spigot Plugin Development' started by XtremePlugins, Oct 22, 2016.

  1. XtremePlugins

    XtremePlugins Previously Whirss

    You need help, click on the poster to an action that can help me?

    I'm with the translator

  2. Ummm what?

    Sent from my iPhone using Tapatalk
  3. Lmao I've seen a lot of threads here, and this is differently one of my top favorites :')
    • Agree Agree x 1
  4. Choco


    The cherry on the cake is the fact that it's a watermarked image :p

    @OP If you want to do something when a Player right clicks on a sign, listen for a PlayerInteractEvent, check if the action is RIGHT_CLICK_BLOCK, check if the block is a SIGN or WALL_SIGN, then do your thing :D
  5. Or you can do:
    if(clickedBlock#getState() indtanceof Sign)
    Which is much faster than checking for every sign type xD
    • Agree Agree x 1