CommandHelper

CommandHelper

46.5k Downloads

"safe" explosons still knock items out of item frames.

LadyCailinBot opened this issue ยท 7 comments

commented

CMDHELPER-2879 - Reported by VergilPrime

Triggered a safe explosion in spawn, knocked all the items out of my item frames.

commented

Comment by PseudoKnight

Item frames are not blocks, and thus not handled by that parameter. The safe boolean handles blocks being set on fire and blocks being broken only. If you want to not damage entities, set the size to 0 or cancel the damage event.

http://jd.bukkit.org/dev/apidocs/org/bukkit/World.html

commented

Comment by VergilPrime

"safe is true, you will still see the animation and hear the sound, but players won't be hurt, and neither will the blocks." this should probably expand to all entities and not just players then.

commented

Comment by PseudoKnight

It specifically mentions not setting fire and not breaking blocks, but nothing about players or entities. My testing confirms players can still be hurt. It's only when you set the size to 0 that players don't get hurt, which is the part you cut off from the documentation.

commented

Comment by EntityReborn

I'm not even sure bukkit itself supports any event like this. I've seen complaints and requests in several places for support for this.

commented

Comment by VergilPrime

13 Jan 2014 06:52
20 hours ago

"safe is true, you will still see the animation and hear the sound, -----but players won't be hurt-----" :P

commented

Comment by PseudoKnight

You keep cutting off the full sentence.

"'''If size is 0''', and safe is true, you will still see the animation and hear the sound, but players won't be hurt, and neither will the blocks."

commented

Comment by LadyCailin

This is working as expected.