Examples of allowFriendlyFire()


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

      // if both players are not on a team, quit
      if (aapl.getTeam() == null && vapl.getTeam() == null) return;

      // if the attacked isn't on a team, or same team (w/ no FF), cancel
      if (vapl.getTeam() == null || (aapl.getTeam() == vapl.getTeam() && !match.allowFriendlyFire()))
      { event.setCancelled(true); return; }
    }

    // only allow damage before a match if it is a direct attack
    if (match.getCurrentState().isBeforeMatch() &&
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.