Package org.mctourney.autoreferee.event.player

Examples of org.mctourney.autoreferee.event.player.PlayerMatchJoinEvent


  /**
   * Teleports a player to a match they have been added to, joining the team inviting them.
   */
  public void joinMatch(Player player)
  {
    PlayerMatchJoinEvent event = new PlayerMatchJoinEvent(player, this);
    AutoReferee.callEvent(event);
    if (event.isCancelled()) return;

    // if already here, skip this
    if (this.isPlayer(player)) return;

    // if this player needs to be placed on a team, go for it
View Full Code Here

TOP

Related Classes of org.mctourney.autoreferee.event.player.PlayerMatchJoinEvent

Copyright © 2018 www.massapicom. 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.