public static void banIP( String bannedBy, String player, String reason ) throws SQLException {
        if ( reason.equals( "" ) ) {
            reason = Messages.DEFAULT_BAN_REASON;
        }
        ArrayList<String> accounts = null;
        if ( Utilities.isIPAddress( player ) ) {
            accounts = PlayerManager.getPlayersAltAccountsByIP( player );
        } else {
            accounts = PlayerManager.getPlayersAltAccounts( player );
        }
        for ( String a : accounts ) {
            if ( !isPlayerBanned( a ) ) {
                SQLManager.standardQuery( "INSERT INTO BungeeBans (player,banned_by,reason,type,banned_on,banned_until) VALUES ('" + a + "', '" + bannedBy + "', '" + reason + "', 'ipban', NOW(), NULL)" );
            } else {
                SQLManager.standardQuery( "UPDATE BungeeBans SET type='ipban' WHERE player ='" + a + "')" );
            }

            if ( PlayerManager.isPlayerOnline( a ) ) {
                disconnectPlayer( a, Messages.IPBAN_PLAYER.replace( "{message}", reason ).replace( "{sender}", bannedBy ) );
            }
        }
        if ( BansConfig.broadcastBans ) {
            PlayerManager.sendBroadcast( Messages.IPBAN_PLAYER_BROADCAST.replace( "{player}", player ).replace( "{message}", reason ).replace( "{sender}", bannedBy ) );
        } else {
            PlayerManager.sendMessageToPlayer( bannedBy, Messages.IPBAN_PLAYER_BROADCAST.replace( "{player}", player ).replace( "{message}", reason ).replace( "{sender}", bannedBy ) );
        }


    }