From 70ccac620fdbe0bfbbfdf3baf8e8b49d0fae2867 Mon Sep 17 00:00:00 2001 From: me4502 Date: Mon, 10 Jun 2013 20:55:32 +1100 Subject: [PATCH] Use equalsIgnoreCase to check for perm plugins, and check for GroupManager Using equalsIgnoreCase fixes a few weird issues with bPerms, and adding GroupManager fixes a metric tonne of issues with GroupManager.. Like it being randomly disabled, it not working, etc. --- .../java/com/sk89q/wepif/PermissionsResolverManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/wepif/PermissionsResolverManager.java b/src/main/java/com/sk89q/wepif/PermissionsResolverManager.java index 8902e3bb5..f5ae11fb8 100644 --- a/src/main/java/com/sk89q/wepif/PermissionsResolverManager.java +++ b/src/main/java/com/sk89q/wepif/PermissionsResolverManager.java @@ -273,8 +273,8 @@ public class PermissionsResolverManager implements PermissionsResolver { String name = plugin.getDescription().getName(); if (plugin instanceof PermissionsProvider) { setPluginPermissionsResolver(plugin); - } else if ("Permissions".equals(name) || "PermissionsEx".equals(name) - || "bPermissions".equals(name)) { + } else if ("permissions".equalsIgnoreCase(name) || "permissionsex".equalsIgnoreCase(name) + || "bpermissions".equalsIgnoreCase(name) || "groupmanager".equalsIgnoreCase(name)) { load(); } } @@ -284,8 +284,8 @@ public class PermissionsResolverManager implements PermissionsResolver { String name = event.getPlugin().getDescription().getName(); if (event.getPlugin() instanceof PermissionsProvider - || "Permissions".equals(name) || "PermissionsEx".equals(name) - || "bPermissions".equals(name)) { + || "permissions".equalsIgnoreCase(name) || "permissionsex".equalsIgnoreCase(name) + || "bpermissions".equalsIgnoreCase(name) || "groupmanager".equalsIgnoreCase(name)) { load(); } }