mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 12:46:09 +01:00
Check for null rsp when loading Vault perms.
Also replace tabs with spaces.
This commit is contained in:
parent
e10239f686
commit
74fb2c8b7d
@ -119,7 +119,9 @@ 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user