From d5328e34bab382da403f260f9233bc5078304606 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Sun, 30 Oct 2011 15:16:00 -0700 Subject: [PATCH] This might fix problems people have been having with dinnerperms. --- .../java/com/sk89q/bukkit/migration/DinnerPermsResolver.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java b/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java index 2c042fdc6..09b3edac9 100644 --- a/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java +++ b/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java @@ -50,8 +50,6 @@ public class DinnerPermsResolver implements PermissionsResolver { return false; // Permissions are only registered for online players } switch (internalHasPermission(perms, permission)) { - case 0: - break; case -1: return false; case 1: @@ -60,8 +58,6 @@ public class DinnerPermsResolver implements PermissionsResolver { int dotPos = permission.lastIndexOf("."); while (dotPos > -1) { switch (internalHasPermission(perms, permission.substring(0, dotPos + 1) + "*")) { - case 0: - break; case -1: return false; case 1: @@ -112,7 +108,6 @@ public class DinnerPermsResolver implements PermissionsResolver { return perms.hasPermission(permission) ? 1 : -1; } else { Permission perm = server.getPluginManager().getPermission(permission); - if (perm != null) { return perm.getDefault().getValue(perms.isOp()) ? 1 : 0; } else {