fix command reloading
This commit is contained in:
parent
2f29c48548
commit
fd28633afb
@ -99,13 +99,13 @@ public final class VillagerOptimizer extends JavaPlugin {
|
||||
public void reloadPlugin() {
|
||||
reloadLang(false);
|
||||
reloadConfiguration();
|
||||
VillagerOptimizerCommand.reloadCommands();
|
||||
}
|
||||
|
||||
private void reloadConfiguration() {
|
||||
try {
|
||||
config = new Config();
|
||||
villagerCache = new VillagerCache(config.cache_keep_time_seconds);
|
||||
VillagerOptimizerCommand.reloadCommands();
|
||||
VillagerOptimizerModule.reloadModules();
|
||||
config.saveConfig();
|
||||
} catch (Exception e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user