if (matchTo.isReferee(player))
matchTo.updateReferee(player);
// give them a book with info about the match
PlayerUtil.clearInventory(player);
matchTo.giveMatchInfoBook(player);
}
// if this is leaving a match, leave its team
if (matchFm != null)
matchFm.leaveTeam(player, false);