if (m.isPlayerExpected(player)) match = m;
if (match != null)
{
// if we are logging in to the wrong world, teleport to the correct world
if (player.getWorld() != match.getWorld()) match.joinMatch(player);
else match.checkTeamsReady();
if (!match.getCurrentState().inProgress() || match.isPlayer(player))
match.broadcast(match.colorMessage(event.getJoinMessage()));
event.setJoinMessage(null);