Fix NoClassDefFoundError being thrown on enable when Vault isn't loaded.
This commit is contained in:
parent
607be6b8fb
commit
e10239f686
@ -117,8 +117,12 @@ public class P extends MPlugin {
|
||||
}
|
||||
|
||||
private boolean setupPermissions() {
|
||||
try {
|
||||
RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
|
||||
perms = rsp.getProvider();
|
||||
} catch (NoClassDefFoundError ex) {
|
||||
return false;
|
||||
}
|
||||
return perms != null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user