Search in sources :

Example 1 with ConfigurationChecker

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();
}
Also used : ConfigurationChecker(com.github.sirblobman.combatlogx.configuration.ConfigurationChecker) ExpansionManager(com.github.sirblobman.combatlogx.api.expansion.ExpansionManager) LanguageManager(com.github.sirblobman.api.language.LanguageManager) ConfigurationManager(com.github.sirblobman.api.configuration.ConfigurationManager)

Aggregations

ConfigurationManager (com.github.sirblobman.api.configuration.ConfigurationManager)1 LanguageManager (com.github.sirblobman.api.language.LanguageManager)1 ExpansionManager (com.github.sirblobman.combatlogx.api.expansion.ExpansionManager)1 ConfigurationChecker (com.github.sirblobman.combatlogx.configuration.ConfigurationChecker)1