Events live in the us.timinc.mc.cobblemon.catchondefeat.event package, and can be accessed via CatchOnDefeat.Events.

JOIN_ON_DEFEAT_PRE

Fired early on when considering a Pokémon attempting to join the team. This event can be canceled. Doing so will result in the join on defeat not going through, and the player will not be shown the confirmation prompt.

Params

pokemon

The Pokémon attempting to join the given player’s party.

player

The player whose party the given Pokémon is attempting to join.

JOIN_ON_DEFEAT_POST

This event is fired off when a join on defeat attempt succeeds. This means the player has already accepted the join as well.

Params

pokemon

The Pokémon that has joined the given player’s party.

player

The player whose party the given Pokémon has joined.