WorldGuard Build Permissions is blocking Damage from Sentinel NPC's that throw Splash Potions
LadyCailinBot opened this issue ยท 0 comments
WORLDGUARD-4069 - Reported by davidbla
Hey Guys,
first I'd like to thank you for this awesome work.
I discovered an issue with worldguard's build permissions and splash potions throwed by an sentinel npc.
I'm not realy sure how this is handled in BuildPermissionsListener
From my perspective of view (just quickly scanned this file) maybe Object rootCause = event.getCause().getRootCause();
returns a Player object and thats why it becomes canceled?
I'll try to validate this by setting the .damage
permissions so that :
(!hasBuildPermission(player, "entity." + type.name().toLowerCase() + ".damage") && !hasBuildPermission(player, "entity.damage." + type.name().toLowerCase()))
will be true.
Thank you