Deny Event

Discussion in 'Plugin Development' started by UnlitedOwns, Aug 5, 2013.

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

    UnlitedOwns

    Hello!

    I just started out trying Java, but have a question.
    How do I deny the enderpearl throw event when somebody interacts with a woodendoor?

    I appreciate all help, thanks!
     
  2. Offline

    chasechocolate

  3. Offline

    chris4315

    use event.setCancelled(true); on top of learning the PlayerInteractEvent first, which chasechocolate has posted for you :p
     
  4. Offline

    xTrollxDudex

    @UnlimitedOwns
    event.setResult(...)
     
Thread Status:
Not open for further replies.

Share This Page