if (useBv) { lisBVs.add(player.getName() + " BV=" + (int) playerValue); } else { lisBVs.add(player.getName() + " Tons=" + playerValue); }
} if (useBv) { lisBVs.add(player.getName() + " BV=" + (int) playerValue); } else { lisBVs.add(player.getName() + " Tons=" + playerValue);
    private void refreshBVs() {        final boolean useBv = chkBV.getState();        lisBVs.removeAll();        for (Enumeration i = client.getPlayers(); i.hasMoreElements();) {            final Player player = (Player) i.nextElement();            if (player == null) {                continue;            }            float playerValue = 0;            for (Enumeration j = client.getEntities(); j.hasMoreElements();) {                Entity entity = (Entity) j.nextElement();                if (entity.getOwner().equals(player)) {                  	if (useBv)                 		playerValue += entity.calculateBattleValue();                        	else{                		playerValue += entity.getWeight();                     	}               }               if (useBv) {                   lisBVs.add(player.getName() + " BV=" + (int) playerValue);               } else {                   lisBVs.add(player.getName() + " Tons=" + playerValue);               }            }        }    }