@EventHandler
    public void onServerConnect(ServerConnectEvent event) {
        if (!IRC.sock.isConnected()) return;
        ProxiedPlayer p = event.getPlayer();
        String confchan = BungeeRelay.getConfig().getString("server.channel");
        String c = confchan;
        if (c.isEmpty()) c = BungeeRelay.getConfig().getString("server.chanprefix") + event.getTarget().getName();

        if (IRC.chans.get(c).isBanned(p) && BungeeRelay.getConfig().getBoolean("server.ban")) {
            p.disconnect(new TextComponent(ChatColor.translateAlternateColorCodes('&', BungeeRelay.getConfig().getString("formats.disconnectban"))));
            return;
        }

        if (confchan.isEmpty()) Util.sendChannelJoin(event.getPlayer(), c);
    }