diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..dbbd4867c --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,2 @@ +### Bugs +Please provide a `/plot debugpaste` if you are reporting a bug. \ No newline at end of file diff --git a/src/main/java/com/intellectualcrafters/plot/util/Permissions.java b/src/main/java/com/intellectualcrafters/plot/util/Permissions.java index ac2762d80..b2f82d302 100644 --- a/src/main/java/com/intellectualcrafters/plot/util/Permissions.java +++ b/src/main/java/com/intellectualcrafters/plot/util/Permissions.java @@ -14,7 +14,7 @@ public class Permissions { } public static boolean hasPermission(final CommandCaller player, String perm) { - if (player.hasPermission(perm)) { + if (player.hasPermission(perm) || player.hasPermission(C.PERMISSION_ADMIN.s())) { return true; } perm = perm.toLowerCase().replaceAll("^[^a-z|0-9|\\.|_|-]", ""); @@ -42,6 +42,9 @@ public class Permissions { } public static int hasPermissionRange(final PlotPlayer player, final String stub, final int range) { + if (player.hasPermission(C.PERMISSION_ADMIN.s())) { + return Integer.MAX_VALUE; + } final String[] nodes = stub.split("\\."); final StringBuilder n = new StringBuilder(); for (int i = 0; i < (nodes.length - 1); i++) { diff --git a/target/PlotSquared-Bukkit.jar b/target/PlotSquared-Bukkit.jar index 97d647d4d..e62751a0d 100644 Binary files a/target/PlotSquared-Bukkit.jar and b/target/PlotSquared-Bukkit.jar differ