Examples of messageReferees()


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

      team.join(player, PlayerTeamJoinEvent.Reason.EXPECTED);
      match = team.getMatch();
    }

    if (match != null && match.isPlayer(player))
      match.messageReferees("player", player.getName(), "login");
  }

  @EventHandler(priority=EventPriority.MONITOR)
  public void playerQuit(PlayerQuitEvent event)
  {
View Full Code Here

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

    AutoRefMatch match = plugin.getMatch(player.getWorld());
    if (match == null) return;

    // leave the team, if necessary
    AutoRefTeam team = plugin.getTeam(player);
    if (team != null) match.messageReferees("player", player.getName(), "logout");
    if (team != null && !match.getCurrentState().inProgress()) team.leave(player);

    AutoRefPlayer apl = match.getPlayer(player);
    if (apl != null && player.getLocation() != null)
      apl.setLastLogoutLocation(player.getLocation());
View Full Code Here

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

  {
    AutoRefMatch match = plugin.getMatch(event.getEntity().getWorld());
    if (match != null && event.getEntity().getType() == EntityType.PLAYER)
    {
      Player player = (Player) event.getEntity();
      match.messageReferees("player", player.getName(),
        "hunger", Integer.toString(event.getFoodLevel()));
    }
  }

  @EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)
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.