Merge branch 'fix/vault-perms' of https://github.com/mrlolethan/Factions into 1.6.x
This commit is contained in:
commit
981822f89d
@ -117,8 +117,14 @@ public class P extends MPlugin {
|
||||
}
|
||||
|
||||
private boolean setupPermissions() {
|
||||
try {
|
||||
RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
|
||||
if (rsp != null) {
|
||||
perms = rsp.getProvider();
|
||||
}
|
||||
} catch (NoClassDefFoundError ex) {
|
||||
return false;
|
||||
}
|
||||
return perms != null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user