Can I cancel this?

Discussion in 'Plugin Development' started by LegoPal92, Jul 23, 2013.

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

    LegoPal92

    I am wondering if it is possible to cancel the selling of an item with an essentials sign. For instance, If a player is in creative mode, they cannot use the sign.
     
  2. Offline

    TheTrixsta

    Yes, just hook into essentials, and cancel the event if the player is in creative.
     
  3. Offline

    LegoPal92

    What event would I cancel?
     
  4. Offline

    Paxination

    PlayerInteractEvent
    and check if the action is RIGHT_CLICK_BLOCK or LEFT_CLICK_BLOCK

    I think those actions would still work for a sign. And not sure if you left click the essentials sign or right click, so check only for the one that triggers it.
     
Thread Status:
Not open for further replies.

Share This Page