mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-23 18:55:25 +01:00
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() {
|
private boolean setupPermissions() {
|
||||||
RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
|
try {
|
||||||
perms = rsp.getProvider();
|
RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
|
||||||
|
perms = rsp.getProvider();
|
||||||
|
} catch (NoClassDefFoundError ex) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return perms != null;
|
return perms != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user