The League of Nations had an agreement under Article X of the League's covenant about collective security. This meant that by acting together and condemning aggression and defending the threatened country, war would be less likely.
Some ways this was done was by:
Moral condemnation- publicly criticising the actions of the country which was behaving aggressively towards another country
Economic sanctions- to stop trading with a country so that their economy suffers