Examples of FightData


Examples of fr.neatmonster.nocheatplus.checks.fight.FightData

   */
  public static final long guessKeepAliveTime(final Player player, final long now, final long maxAge){
    final int tick = TickTask.getTick();
    long ref = Long.MIN_VALUE;
    // Estimate last fight action time (important for gode modes).
    final FightData fData = FightData.getData(player);
    ref = Math.max(ref, fData.speedBuckets.lastAccess());
    ref = Math.max(ref, now - 50L * (tick - fData.lastAttackTick)); // Ignore lag.
    // Health regain (not unimportant).
    ref = Math.max(ref, fData.regainHealthTime);
    // Move time.
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.