9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 12:29:16 +00:00

fix: worldguard flag hiding cosmetics when on allow

This commit is contained in:
LoJoSho
2023-03-01 10:21:40 -06:00
parent df8ad26684
commit 2682428354

View File

@@ -32,6 +32,7 @@ public class WGListener implements Listener {
}
for (ProtectedRegion protectedRegion : set.getRegions()) {
if (protectedRegion.getFlags().containsKey(WGHook.getCosmeticEnableFlag())) {
if (protectedRegion.getFlags().get(WGHook.getCosmeticEnableFlag()).toString().equalsIgnoreCase("ALLOW")) return;
user.hideCosmetics(CosmeticUser.HiddenReason.WORLDGUARD);
return;
}