WorldGuard

WorldGuard

8M Downloads

Item Frames can be shot down with arrows /snowballs

LadyCailinBot opened this issue ยท 5 comments

commented

WORLDGUARD-2753 - Reported by systemNEO

WorldGuard Version 5.7.6
Bukkit Version 1.5.2-R0.1-2-gc397dc0-b2780jnks / 1.5.2-R.02-SNAPSHOT

Error description

If I shot with arrows or snowballs on item-frames in protected regions (build:deny, entity-item-frame-destroy:deny and config value block-item-frame-destroy: true) then they break.

''Note: It seems that entityEvent.getRemover() always an instance of Player (see https://github.com/sk89q/worldguard/blob/master/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardHangingListener.java#L82).''

Suggested behavior

They don't break.

Best Regards,
Hape

commented

Comment by systemNEO

Original bug.

commented

Comment by wizjany

can't reproduce
even if entityEvent.getRemover() did always return the player, (instead of returning the projectile which we then do getShooter() on) it would still correctly block the removal

commented

Comment by systemNEO

Okay, thanks. I try to check if another cause causing the bug.

commented

Comment by systemNEO

Mh. If i am a member of that area then I can shot and destroy item-frames. If i am not than not. Is that right? I think if I deny that explicit than it should not possible for region members or owners, too.

commented

Comment by wizjany

it checks normal build permissions, so yes that seems right
if you can place/destroy a block where the item frame is, you should be able to break the item frame