Package org.mctourney.autoreferee.event.match

Examples of org.mctourney.autoreferee.event.match.MatchCompleteEvent


   *
   * @param team winning team, or null for no winner
   */
  public void endMatch(AutoRefTeam team)
  {
    MatchCompleteEvent event = new MatchCompleteEvent(this, team);
    AutoReferee.callEvent(event);
    if (event.isCancelled()) return;

    AutoReferee plugin = AutoReferee.getInstance();

    // update winner from the match complete event
    team = event.getWinner();

    // announce the victory and set the match to completed
    if (team != null) this.broadcast(team.getDisplayName() + " Wins!");
    else this.broadcast("Match terminated!");

View Full Code Here

TOP

Related Classes of org.mctourney.autoreferee.event.match.MatchCompleteEvent

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.