/**
* Teleports a player to a match they have been added to, joining the team inviting them.
*/
public void joinMatch(Player player)
{
PlayerMatchJoinEvent event = new PlayerMatchJoinEvent(player, this);
AutoReferee.callEvent(event);
if (event.isCancelled()) return;
// if already here, skip this
if (this.isPlayer(player)) return;
// if this player needs to be placed on a team, go for it