Stop breaking ItemFrames

Discussion in 'Plugin Development' started by PVP9dc, Dec 10, 2013.

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

    PVP9dc

    My Players are destroying Itemframes on my server. I want to stop that but i have no idea how to. :(
    - WorldGuard Flag isnt working
    - FrameProtect (Plugin) isnt working
    - no idea how to code

    Help me pls! :D
    [​IMG]
    10 seconds later:
    [​IMG]
     
  2. Offline

    RawCode

    HangingBreakEvent
    + setcancelled()
     
  3. Offline

    desht

    PVP9dc Running CB 1.7 by any chance?
     
  4. Offline

    PVP9dc

    desht yes spigot 1.7.2
     
  5. Offline

    desht

    • Since you're running Spigot, don't expect too much sympathy here.
    • CraftBukkit added protection for filled item frames very recently (you'll want build 2950 at least)
    • And since the API for protecting filled item frames is now different from protecting empty frames*, you'll need to wait until any relevant protection plugins have updated.
    * Damaging a filled item frame now fires an EntityDamageEvent (or some subclass thereof) instead of a HangingBreakEvent. Damaging an empty item frame still fires a HangingBreakEvent.
     
  6. Offline

    PVP9dc

    thanks :)
     
  7. Offline

    Iroh

    Locked. We do not provide plugins for software we do not provide.
     
Thread Status:
Not open for further replies.

Share This Page