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() {
|
private boolean setupPermissions() {
|
||||||
RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
|
try {
|
||||||
perms = rsp.getProvider();
|
RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
|
||||||
|
if (rsp != null) {
|
||||||
|
perms = rsp.getProvider();
|
||||||
|
}
|
||||||
|
} catch (NoClassDefFoundError ex) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return perms != null;
|
return perms != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user