public static void toggleToPlayersFactionChannel( String sender, String channel, boolean hasFaction ) throws SQLException {
        BSPlayer p = PlayerManager.getPlayer( sender );
        if ( !hasFaction ) {
            p.sendMessage( Messages.FACTION_NONE );
            return;
        }
        if ( p.getChannel().equals( channel ) ) {
            channel = getServersDefaultChannel( p.getServerData() );
            p.sendMessage( Messages.FACTION_OFF_TOGGLE );
        } else if ( channel.equals( "Faction" ) ) {
            p.sendMessage( Messages.FACTION_TOGGLE );
        } else {
            p.sendMessage( Messages.FACTION_ALLY_TOGGLE );
        }
        Channel c = getChannel( channel );
        setPlayersChannel( p, c, false );
    }