/FileExtraction/Java_unseen/KingRainbow44_SkyblockSandbox/src/main/java/tk/skyblocksandbox/partyandfriends/PartyModule.java
package tk.skyblocksandbox.partyandfriends;

import tk.skyblocksandbox.partyandfriends.command.ChatCommand;
import tk.skyblocksandbox.partyandfriends.command.PartyCommand;
import tk.skyblocksandbox.partyandfriends.listener.ChatListener;
import tk.skyblocksandbox.partyandfriends.party.PartyManager;
import tk.skyblocksandbox.skyblocksandbox.module.SandboxModule;

public final class PartyModule extends SandboxModule {

    private static PartyModule instance;
    private static PartyManager partyManager;

    public enum ChatTypes {
        ALL_CHAT,
        PARTY_CHAT,
        REPLY_CHAT
    }

    public PartyModule() {
        super("PartyModule", LOAD_ON_ENABLE, 1.0);
    }

    @Override
    public void onLoad() {
        instance = this;
    }

    @Override
    public void onEnable() {
        partyManager = new PartyManager();

        registerCommand(new PartyCommand());
        registerCommand(new ChatCommand());

        registerListener(new ChatListener());

        getLogger().info("Enabled Party Module.");
    }

    @Override
    public void onDisable() {
        getLogger().info("Disabled Party Module.");
    }

    public static PartyModule getInstance() {
        return instance;
    }

    public static PartyManager getPartyManager() {
        return partyManager;
    }
}
