Aquerr / EagleFactions

A simple yet powerful factions plugin for SpongeForge.
MIT License
32 stars 13 forks source link

SafeZone is not protected from Explosions #128

Closed dedo1911 closed 4 years ago

dedo1911 commented 4 years ago

If the user has not permission to build in safezone, It's currently returning okWarZone instead of forbiddenSafeZone.

https://github.com/Aquerr/EagleFactions/blob/849d92a6424fb2f393d3a5feb8218092777097ca/common/src/main/java/io/github/aquerr/eaglefactions/common/managers/ProtectionManagerImpl.java#L582

if (user.hasPermission(PluginPermissions.SAFE_ZONE_BUILD))
                    return ProtectionResult.okSafeZone();
                else return ProtectionResult.forbiddenSafeZone();
Aquerr commented 4 years ago

Ah, I see, my bad. Thanks for report.

Aquerr commented 4 years ago

Bug has been fixed in dev. If you would like to grab that build then feel free to do it from this link. Don't know yet when normal release will be published.