Prevent Players From Breaking Paintings and Putting Out Fire?

Discussion in 'Plugin Development' started by SmokyMiner, Oct 6, 2012.

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

    SmokyMiner

    How can I prevent players from breaking paintings and putting out fire? Canceling the block place event doesnt work for them.
     
  2. Offline

    gregthegeek

    Try PlayerInteractEvent.
     
  3. Offline

    SmokyMiner

    How would I go about doing that?

    I have other code going on in the PlayerInteractEvent so I cant just cancel it
     
  4. Offline

    Icyene

    Use the ignoredCancelled = true flag.
     
  5. Offline

    KeybordPiano459

    Check if the block being left clicked is a painting or fire, THEN cancel it.
     
  6. Offline

    SmokyMiner

    Paintings are entities not blocks, just found that out
     
Thread Status:
Not open for further replies.

Share This Page