mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
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.
This commit is contained in:
parent
5895b492da
commit
70ccac620f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user