fix workaround

This commit is contained in:
Jesse Boyd 2019-04-23 01:53:24 +10:00
parent 0c0d0104d7
commit 145af1e091
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -152,9 +152,9 @@ public class BukkitPlayer extends PlotPlayer {
// Workaround // Workaround
for (PermissionAttachmentInfo attach : effective) { for (PermissionAttachmentInfo attach : effective) {
String permStr = attach.getPermission(); String permStr = attach.getPermission();
Permission perm = Bukkit.getPluginManager().getPermission(permStr); if (permStr.startsWith("plots.") && !permStr.equals("plots.use")) {
@NotNull PermissionDefault def = perm.getDefault(); return max;
if (!def.getValue(false)) return max; }
} }
CHECK_EFFECTIVE = false; CHECK_EFFECTIVE = false;
} }