onBlockPlace w/ Paintings

Discussion in 'Plugin Development' started by Coelho, Dec 27, 2011.

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

    Coelho

    The event inside org.bukkit.event.block.BlockListener:
    onBlockPlace (BlockPlaceEvent event)
    if cancelled does not block the placement of paintings. I haven't tested to see if the callback is even called in the instance, however.

    The event
    onBlockBreak (BlockBreakEvent event)
    if cancelled however does block the removal of paintings.

    This is a very annoying issue, because with plugins like Towny that are supposed to protect land, players can still defile it by placing a overabundance of paintings. Anyone else experiencing this issue?
     
  2. Offline

    nisovin

    Paintings are entities, and have their own listeners events (they use the entity listener).
     
  3. Offline

    AlbireoX

    If the javadocs say it, of course other people are experiencing this issue. (By say it, i mean having totally separate events) It's really not an issue though; it's more of an annoyance.

    To remedy it, I would say fork towny, but towny is one of those stupid plugins that doesn't use Github so you can't do that :/
     
Thread Status:
Not open for further replies.

Share This Page