Search in sources :

Example 1 with DescriptionManager

use of net.dzikoysk.funnyguilds.util.DescriptionManager in project FunnyGuilds by FunnyGuilds.

the class FunnyGuilds method onLoad.

@Override
public void onLoad() {
    if (!this.getDataFolder().exists()) {
        this.getDataFolder().mkdir();
    }
    DescriptionManager descriptionManager = new DescriptionManager(super.getDescription());
    version = descriptionManager.extractVersion();
    PluginConfig settings = Settings.getConfig();
    descriptionManager.rename(settings.pluginName);
    this.concurrencyManager = new ConcurrencyManager(settings.concurrencyThreads);
    this.concurrencyManager.printStatus();
    this.reloadHandler = new ReloadHandler();
    this.reloadHandler.init();
    Commands commands = new Commands();
    commands.register();
    this.eventManager = new EventManager();
    this.eventManager.load();
}
Also used : PluginConfig(net.dzikoysk.funnyguilds.data.configs.PluginConfig) ConcurrencyManager(net.dzikoysk.funnyguilds.concurrency.ConcurrencyManager) EventManager(net.dzikoysk.funnyguilds.system.event.EventManager) ReloadHandler(net.dzikoysk.funnyguilds.util.ReloadHandler) Commands(net.dzikoysk.funnyguilds.command.Commands) DescriptionManager(net.dzikoysk.funnyguilds.util.DescriptionManager)

Aggregations

Commands (net.dzikoysk.funnyguilds.command.Commands)1 ConcurrencyManager (net.dzikoysk.funnyguilds.concurrency.ConcurrencyManager)1 PluginConfig (net.dzikoysk.funnyguilds.data.configs.PluginConfig)1 EventManager (net.dzikoysk.funnyguilds.system.event.EventManager)1 DescriptionManager (net.dzikoysk.funnyguilds.util.DescriptionManager)1 ReloadHandler (net.dzikoysk.funnyguilds.util.ReloadHandler)1