mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-12 13:01:26 +01:00
!Fixed /mi reload
This commit is contained in:
parent
da3bc90f6c
commit
def0477894
@ -177,8 +177,6 @@ public class MMOItems extends JavaPlugin {
|
||||
|
||||
findRpgPlugin();
|
||||
|
||||
templateManager.reload();
|
||||
|
||||
/*
|
||||
* After tiers, sets and upgrade templates are loaded, MI template data
|
||||
* can be fully loaded
|
||||
|
@ -248,7 +248,9 @@ public class TemplateManager {
|
||||
FileConfiguration config = type.getConfigFile().getConfig();
|
||||
for (String key : config.getKeys(false))
|
||||
try {
|
||||
registerTemplate(new MMOItemTemplate(type, config.getConfigurationSection(key)));
|
||||
MMOItemTemplate template = new MMOItemTemplate(type, config.getConfigurationSection(key));
|
||||
template.postLoad();
|
||||
registerTemplate(template);
|
||||
} catch (IllegalArgumentException exception) {
|
||||
MMOItems.plugin.getLogger().log(Level.INFO, "Could not load item template '" + key + "': " + exception.getMessage());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user