/** * Updates the flag positions for the specified team. * * @param player The player to receive the update. * @param team The team to look for the flag positions. */ public void updateFlag(Player player, Team team) { if (getPlayers(GameType.ACTIVE).contains(player)) { if (teams.get(team).getAttribute(4)) { player .getObjectSet() .add( new StaticObjectDefinition( teams.get(team).getPole(), teams.get(team).getBaseOff(), team == Team.ZAMORAK ? -1 : -3, 10)); } else { player .getObjectSet() .remove( new StaticObjectDefinition( teams.get(team).getPole(), teams.get(team).getBaseOn(), team == Team.ZAMORAK ? -1 : -3, 10)); } } }