Check no-worldedit flag

This commit is contained in:
Jesse Boyd 2018-03-15 16:35:44 +11:00
parent fac3772eed
commit a2daa3a6a5
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -93,7 +93,7 @@ public class PlotSquaredFeature extends FaweMaskManager {
return false;
}
UUID uid = fp.getUUID();
return (plot.isOwner(uid) || (type == MaskType.MEMBER && (plot.getTrusted().contains(uid) || (plot.getMembers().contains(uid) && fp.hasPermission("fawe.plotsquared.member"))))) || fp.hasPermission("fawe.plotsquared.admin");
return !Flags.NO_WORLDEDIT.isTrue(plot) && (plot.isOwner(uid) || (type == MaskType.MEMBER && (plot.getTrusted().contains(uid) || (plot.getMembers().contains(uid) && fp.hasPermission("fawe.plotsquared.member"))))) || fp.hasPermission("fawe.plotsquared.admin"));
}
@Override