mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 12:46:09 +01:00
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() {
|
||||
RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
|
||||
perms = rsp.getProvider();
|
||||
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