mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed bug in PermissionsEx resolver when PermissionsEx is not found.
This commit is contained in:
parent
52982c7c0f
commit
bd5c78bb40
@ -31,6 +31,7 @@ public class PermissionsExResolver implements PermissionsResolver {
|
|||||||
private final Server server;
|
private final Server server;
|
||||||
|
|
||||||
public static PermissionsResolver factory(Server server, YAMLProcessor config) {
|
public static PermissionsResolver factory(Server server, YAMLProcessor config) {
|
||||||
|
try {
|
||||||
PermissionManager manager = server.getServicesManager().load(PermissionManager.class);
|
PermissionManager manager = server.getServicesManager().load(PermissionManager.class);
|
||||||
|
|
||||||
if (manager == null) {
|
if (manager == null) {
|
||||||
@ -38,6 +39,9 @@ public class PermissionsExResolver implements PermissionsResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return new PermissionsExResolver(server, manager);
|
return new PermissionsExResolver(server, manager);
|
||||||
|
} catch (Throwable t) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public PermissionsExResolver(Server server, PermissionManager manager) {
|
public PermissionsExResolver(Server server, PermissionManager manager) {
|
||||||
|
Loading…
Reference in New Issue
Block a user