public boolean canPlayYearOfPlenty(int playerIndex, ResourceType firstResource, ResourceType secondResource) {
		//Checks status, players turn, has player already played dev card, if the player has a year of plenty card,
		//and that the bank has the two resources requested.
		if (generalDevCardPreconditions(playerIndex) && 
			serverModel.getPlayers().get(playerIndex).getOldDevCards().getYearOfPlenty() > 0 &&
			serverModel.getBank().hasResource(firstResource) && serverModel.getBank().hasResource(secondResource)) {
			
			return true;
		}
		else {
			return false;
		}
	}