Package org.mctourney.autoreferee

Examples of org.mctourney.autoreferee.AutoRefTeam.join()


      {
        AutoRefTeam team = match.getPlayerTeam(p);
        if (team != null)
        {
          AutoRefTeam newteam = newmatch.getTeam(team.getDefaultName());
          newteam.join(p, Reason.AUTOMATIC, true);
        }

        // teleport the player to location in new map
        Location loc = p.getLocation();
        loc.setWorld(newmatch.getWorld());
View Full Code Here


    AutoRefTeam team = plugin.getExpectedTeam(player);
    AutoRefMatch match = plugin.getMatch(player.getWorld());

    if (team != null)
    {
      team.join(player, PlayerTeamJoinEvent.Reason.EXPECTED);
      match = team.getMatch();
    }

    if (match != null && match.isPlayer(player))
      match.messageReferees("player", player.getName(), "login");
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.