Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Fixed bug in PermissionsEx resolver when PermissionsEx is not found.
Dieser Commit ist enthalten in:
Ursprung
52982c7c0f
Commit
bd5c78bb40
@ -31,13 +31,17 @@ public class PermissionsExResolver implements PermissionsResolver {
|
||||
private final Server server;
|
||||
|
||||
public static PermissionsResolver factory(Server server, YAMLProcessor config) {
|
||||
PermissionManager manager = server.getServicesManager().load(PermissionManager.class);
|
||||
try {
|
||||
PermissionManager manager = server.getServicesManager().load(PermissionManager.class);
|
||||
|
||||
if (manager == null) {
|
||||
if (manager == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new PermissionsExResolver(server, manager);
|
||||
} catch (Throwable t) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new PermissionsExResolver(server, manager);
|
||||
}
|
||||
|
||||
public PermissionsExResolver(Server server, PermissionManager manager) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren