public void onEnable() {
        this.file = new File(getDataFolder(), "config.yml");
        ruChat.cfg = YamlConfiguration.loadConfiguration(file);
        this.loadCfg();
        ruChat.modes = new HashMap<Player, ChatMode>();
        this.log = Logger.getLogger("Minecraft");
        this.plugin = getServer().getPluginManager();
        ruChat.usePex = false;
        if (plugin.getPlugin("PermissionsEx") != null) {
            ruChat.usePex = true;
        }
        this.plugin.registerEvents(new ChatListener(), this);
        
        List<PluginCommand> cmds = new ArrayList<PluginCommand>();

        cmds.add(getCommand("g"));
        cmds.add(getCommand("p"));
        cmds.add(getCommand("s"));
        cmds.add(getCommand("h"));
        cmds.add(getCommand("chat"));

        CommandsExecutor ex = new CommandsExecutor();

        for (PluginCommand cmd : cmds) {
            cmd.setExecutor(ex);
        }

        this.log("Enabled!");
    }