Examples of joinMatch()


Examples of org.mctourney.autoreferee.AutoRefMatch.joinMatch()

        Location loc = p.getLocation();
        loc.setWorld(newmatch.getWorld());
        p.teleport(loc);
      }
    }
    else for (Player p : match.getWorld().getPlayers()) newmatch.joinMatch(p);

    match.destroy(MatchUnloadEvent.Reason.COMMAND);
    return true;
  }
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.joinMatch()

        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);
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.joinMatch()

  @Override
  protected void lobbyLoadMap(Player player, AutoRefMap map)
  {
    AutoRefMatch match = findSuitableMatch(map);
    if (match != null) match.joinMatch(player);
    else _loadMap(player, map, null);
  }

  private AutoRefMatch findSuitableMatch(AutoRefMap map)
  {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.