From 145af1e091e9d422a871e43e18966d073e39add6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 23 Apr 2019 01:53:24 +1000 Subject: [PATCH] fix workaround --- .../plotsquared/bukkit/object/BukkitPlayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/object/BukkitPlayer.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/object/BukkitPlayer.java index caac45a20..71014eb78 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/object/BukkitPlayer.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/object/BukkitPlayer.java @@ -152,9 +152,9 @@ public class BukkitPlayer extends PlotPlayer { // Workaround for (PermissionAttachmentInfo attach : effective) { String permStr = attach.getPermission(); - Permission perm = Bukkit.getPluginManager().getPermission(permStr); - @NotNull PermissionDefault def = perm.getDefault(); - if (!def.getValue(false)) return max; + if (permStr.startsWith("plots.") && !permStr.equals("plots.use")) { + return max; + } } CHECK_EFFECTIVE = false; }