Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Fixed a few bugs with permissions resolver loading.
Dieser Commit ist enthalten in:
Ursprung
86dfa3dce8
Commit
927cab001e
@ -34,6 +34,11 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
|||||||
|
|
||||||
public static PermissionsResolver factory(Server server, YAMLProcessor config) {
|
public static PermissionsResolver factory(Server server, YAMLProcessor config) {
|
||||||
PluginManager pluginManager = server.getPluginManager();
|
PluginManager pluginManager = server.getPluginManager();
|
||||||
|
try {
|
||||||
|
Class.forName("com.nijikokun.bukkit.Permissions.Permissions");
|
||||||
|
} catch (ClassNotFoundException e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
Plugin plugin = pluginManager.getPlugin("Permissions");
|
Plugin plugin = pluginManager.getPlugin("Permissions");
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ public class PermissionsResolverManager implements PermissionsResolver {
|
|||||||
for (Class<?> clazz : availableResolvers) {
|
for (Class<?> clazz : availableResolvers) {
|
||||||
if (!stagedEnabled.contains(clazz.getSimpleName()) &&
|
if (!stagedEnabled.contains(clazz.getSimpleName()) &&
|
||||||
!disabledResolvers.contains(clazz.getSimpleName())) {
|
!disabledResolvers.contains(clazz.getSimpleName())) {
|
||||||
disabledResolvers.add(clazz.getName());
|
disabledResolvers.add(clazz.getSimpleName());
|
||||||
logger.info("New permissions resolver: "
|
logger.info("New permissions resolver: "
|
||||||
+ clazz.getSimpleName() + " detected. " +
|
+ clazz.getSimpleName() + " detected. " +
|
||||||
"Added to disabled resolvers list.");
|
"Added to disabled resolvers list.");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren