public void dropAllCTFItems(Player player){
  int amount;
  for (  String ctfItemName : ctfItemNames) {
    amount=player.getNumberOfEquipped(ctfItemName);
    if (amount > 0) {
      player.drop(ctfItemName,amount);
    }
  }
}

public void dropAllCTFItems ( Player player ) { int amount ; for ( String ctfItemName : ctfItemNames ) { amount = player . getNumberOfEquipped ( ctfItemName ) ; if ( amount > 0 ) { player . drop ( ctfItemName , amount ) ; } } }
drop anything the player is carrying that is ctf - related todo : probably goes elsewhere - more general support class
