Package org.mctourney.autoreferee.event.player

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


   * @param force force join operation, even if match is in progress
   * @return true if player was successfully added, otherwise false
   */
  public boolean join(Player player, PlayerTeamJoinEvent.Reason reason, boolean force)
  {
    PlayerTeamJoinEvent event = new PlayerTeamJoinEvent(player, this, reason);
    AutoReferee.callEvent(event);
    if (event.isCancelled()) return false;

    // if this player is using the client mod and is not an op, they may not join
    if (!player.isOp() && PlayerUtil.hasClientMod(player))
    {
      if (!getMatch().isReferee(player))
View Full Code Here

TOP

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

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.