use of com.github.sirblobman.combatlogx.configuration.ConfigurationChecker in project CombatLogX by SirBlobman.
the class CombatPlugin method onLoad.
@Override
public void onLoad() {
ConfigurationChecker configurationChecker = new ConfigurationChecker(this);
configurationChecker.checkVersion();
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.saveDefault("config.yml");
configurationManager.saveDefault("commands.yml");
configurationManager.saveDefault("punish.yml");
LanguageManager languageManager = getLanguageManager();
languageManager.saveDefaultLanguages();
languageManager.reloadLanguages();
ExpansionManager expansionManager = getExpansionManager();
expansionManager.loadExpansions();
broadcastLoadMessage();
}
Aggregations