Hey, On my test server, the following code stops explosions: http://pastebin.com/T79V9bcL However, on other servers it does not. The only difference is that the other have plugins such as essentials, worldguard, etc. Is there another way, or a way I can set it through code or through another plugin I can stop this when explosions take place? Thanks a lot,
Worldguard > /rg flag __global__ tnt deny /rg flag __global__ creeper-explosion deny /rg flag __global__ other-explosion deny /gamerule doMobGrief false
Add different handlers for each priority, and have it broadcast the blocks-to-explode. Also, if you're on 1.8, spigot has a blockexplodeevent.
I am now running 1.8.3 spigot and it wont work on my server (when the snowball explodes it still breaks blocks) I have 3 events, EntityExplodeEvent HangingBreakEvent (This works and stops it breaking item frames) BlockBreakEvent The snowballs still break blocks, would you know anything else? Thanks a lot for the help this far
Paste the code for snowballs breaking blocks. And did you do what I said? Add event handlers for each priority, and list out the blocks that are exploding on each one.
http://pastebin.com/MMsREw6Y When the snowballs hit, it simply creates an explosion where it lands What other Events can I use?
Same event, different priority. Why not just set the explosion with the snowball to not break blocks?