No chat to show

This project's files are all here to explore.

Files
resourcepack
src
build.gradle
Code
75 2,800
src/main/java/com/custommaces/CustomMaces.java
package com.custommaces;

import com.custommaces.command.GiveCustomItemCommand;
import com.custommaces.command.GiveMaceCommand;
import com.custommaces.command.MacesCommand;
import com.custommaces.command.ManaCommand;
import com.custommaces.command.SetManaCommand;
import com.custommaces.listener.CustomItemListener;
import com.custommaces.listener.MaceListener;
import com.custommaces.listener.ManaListener;
import com.custommaces.manager.AbilityManager;
import com.custommaces.manager.ConfigManager;
import com.custommaces.manager.CraftingManager;
import com.custommaces.manager.CustomItemManager;
import com.custommaces.manager.MaceManager;
import com.custommaces.manager.ManaManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class CustomMaces extends JavaPlugin {

    private ConfigManager configManager;
    private MaceManager maceManager;
    private ManaManager manaManager;
    private CustomItemManager customItemManager;
    private CraftingManager craftingManager;
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.maceManager = new MaceManager(this);
        this.customItemManager = new CustomItemManager(this);
        this.manaManager = new ManaManager(this);
        this.craftingManager = new CraftingManager(this);
        this.abilityManager = new AbilityManager(this);

        registerListeners();
        registerCommands();

        getLogger().info("CustomMaces has been enabled!");
    }

    @Override
    public void onDisable() {
        if (manaManager != null) {
            manaManager.saveAll();
        }
        getLogger().info("CustomMaces has been disabled!");
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new MaceListener(this), this);
        getServer().getPluginManager().registerEvents(new CustomItemListener(this), this);
        getServer().getPluginManager().registerEvents(new ManaListener(this), this);
    }

    private void registerCommands() {
        getCommand("maces").setExecutor(new MacesCommand(this));
        getCommand("givemace").setExecutor(new GiveMaceCommand(this));
        getCommand("givecustomitem").setExecutor(new GiveCustomItemCommand(this));
        getCommand("mana").setExecutor(new ManaCommand(this));
        getCommand("setmana").setExecutor(new SetManaCommand(this));
    }
}