Fix an issue with explicit permissions not working

This commit is contained in:
libraryaddict 2021-01-26 19:30:38 +13:00
parent 17f6b62fd6
commit f87a756aa0

View File

@ -382,7 +382,7 @@ public class DisguisePermissions {
storage.negatedOptions.add("setinvisible");
}
if (sender instanceof Player && !sender.isOp()) {
if (sender instanceof Player && !sender.isOp() && !DisguiseConfig.isExplicitDisguisePermissions()) {
storage.permittedOptions.remove("setYModifier");
storage.negatedOptions.add("setYModifier");
}