No chat to show

This project's files are all here to explore.

Files
src
build.gradle
settings.gradle
Code
16 2,427
src/main/java/com/catalyst/smp/CatalystSMP.java
package com.catalyst.smp;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class CatalystSMP extends JavaPlugin {
    private CatalystItems items;
    private CatalystPoints points;
    private CatalystBosses bosses;
    private CatalystManager catalysts;
    private CombatEffects effects;
    private CatalystListener listener;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.items = new CatalystItems(this);
        this.items.registerRecipes();
        this.points = new CatalystPoints(this);
        this.effects = new CombatEffects();
        this.catalysts = new CatalystManager(this, items);
        this.bosses = new CatalystBosses(this, items, effects);
        this.listener = new CatalystListener(this, items, points, bosses, catalysts, effects);

        Bukkit.getPluginManager().registerEvents(listener, this);
        BossCommand bossCommand = new BossCommand(bosses);
        getCommand("boss").setExecutor(bossCommand);
        getCommand("boss").setTabCompleter(bossCommand);
        CatalystCommand catalystCommand = new CatalystCommand(items, points, catalysts);
        getCommand("catalyst").setExecutor(catalystCommand);
        getCommand("catalyst").setTabCompleter(catalystCommand);
        listener.startPassiveTask();
    }

    @Override
    public void onDisable() {
        if (points != null) {
            points.save();
        }
        if (catalysts != null) {
            catalysts.save();
        }
        if (bosses != null) {
            bosses.shutdown();
        }
    }
}