Package org.mctourney.autoreferee.event.player

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


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

    // if the match is in progress, no one may leave their team
    if (!match.getCurrentState().isBeforeMatch() && !force &&
      match.getReferees().size() > 0) return false;

View Full Code Here

TOP

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

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.