mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Fixed the permissions resolver not being loaded if it was loaded after a plugin was enabled or re-enabled.
This commit is contained in:
parent
66edfbbae6
commit
024604e204
@ -46,6 +46,7 @@ public void onPluginEnabled(PluginEvent event) {
|
||||
manager.setPluginPermissionsResolver(plugin);
|
||||
} else if (name.equalsIgnoreCase("GroupUsers") || name.equalsIgnoreCase("Permissions")) {
|
||||
manager.findResolver();
|
||||
manager.load();
|
||||
}
|
||||
}
|
||||
|
||||
@ -63,6 +64,7 @@ public void onPluginDisabled(PluginEvent event) {
|
||||
|| name.equalsIgnoreCase("GroupUsers")
|
||||
|| name.equalsIgnoreCase("Permissions")) {
|
||||
manager.findResolver();
|
||||
manager.load();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user