Package fr.neatmonster.nocheatplus.utilities

Examples of fr.neatmonster.nocheatplus.utilities.ActionFrequency


  }

  @Override
  public void onPacketReceiving(final PacketEvent event) {
      // TODO: Add several (at least has look + has pos individually, maybe none/onground)
      final ActionFrequency freq = getFreq(event.getPlayer().getName());
      freq.add(System.currentTimeMillis(), 1f);
      if (freq.score(1f) > maxPackets) {
          // TODO: Get from a NetConfig (optimized).
          if (ConfigManager.getConfigFile(event.getPlayer().getWorld().getName()).getBoolean(ConfPaths.NET_FLYINGFREQUENCY_ACTIVE)) {
              event.setCancelled(true);
              counters.add(idSilent, 1); // Until it is sure if we can get these async.
          }
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.utilities.ActionFrequency

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.