public static void MutePlayer( String sender, String target, boolean command ) throws SQLException {
        BSPlayer p = PlayerManager.getPlayer( sender );
        if ( !PlayerManager.playerExists( target ) ) {
            p.sendMessage( Messages.PLAYER_DOES_NOT_EXIST );
            return;
        }
        BSPlayer t = PlayerManager.getSimilarPlayer( target );
        if ( t != null ) {
            target = t.getName();
        }
        if ( command ) {
            command = !PlayerManager.isPlayerMuted( target );
        } else {
            if ( !PlayerManager.isPlayerMuted( target ) ) {
                p.sendMessage( Messages.PLAYER_NOT_MUTE );
                return;
            }
        }
        PlayerManager.mutePlayer( target );
        if ( command ) {
            p.sendMessage( Messages.PLAYER_MUTED.replace( "{player}", target ) );
            return;
        } else {
            p.sendMessage( Messages.PLAYER_UNMUTED.replace( "{player}", target ) );
        }

    }