mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
fix workaround
This commit is contained in:
parent
0c0d0104d7
commit
145af1e091
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue