package com.codenameflip.chatchannels;

import com.codenameflip.chatchannels.commands.chat.CmdChat;
import com.codenameflip.chatchannels.commands.chat_admin.CmdChatAdmin;
import com.codenameflip.chatchannels.structure.IChannelRegistry;
import com.codenameflip.chatchannels.structure.SimpleChannelRegistry;
import com.codenameflip.chatchannels.utils.Language;
import com.simplexitymc.command.api.CommandHandler;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

/**
 * ChatChannels
 *
 * @author Cameron Fletcher
 * @since 2/3/18
 */
public final class ChatChannels extends JavaPlugin {

    private static final String
            PLUGIN_RESOURCE_ID = "39100",
            PLUGIN_RESOURCE_URL = "https://api.spiget.org/v2/resources/%ID%/updates?size=" + Integer.MAX_VALUE + "&spiget__ua=ChatChannels",
            PLUGIN_VERSION_URL = "https://api.spiget.org/v2/resources/%ID%/versions?size=" + Integer.MAX_VALUE + "&spiget__ua=ChatChannels";

    @Getter
    private static ChatChannels instance;

    @Getter
    private IChannelRegistry registry;

    @Getter
    private CommandHandler commandHandler;

    @Override
    public void onEnable() {
        instance = this;
        this.saveDefaultConfig();

        commandHandler = new CommandHandler(this)
                .message(Language.color("&c[ChatChannels] You do not have permission to execute that command!"));
        commandHandler.addCommands(new CmdChat(), new CmdChatAdmin());

        registry = new SimpleChannelRegistry();
        registry.construct();

        Language.localeConsole("ENABLED", null);
    }

    @Override
    public void onDisable() {
        registry.deconstruct();

        Language.localeConsole("DISABLED", null);
    }

}
@@ -631,39 +631,32 @@
 ing%0A            
-PLUGIN_
 RESOURCE_ID = %223
@@ -674,23 +674,16 @@
         
-PLUGIN_
 RESOURCE
@@ -812,15 +812,8 @@
     
-PLUGIN_
 VERS
@@ -1703,8 +1703,9 @@
     %7D%0A%0A%7D
+%0A

remove redundant "PLUGIN" prefixes to variables