Package fr.neatmonster.nocheatplus.checks.combined

Examples of fr.neatmonster.nocheatplus.checks.combined.CombinedData


    public boolean unsafeLoginCheck(final Player player, final ChatConfig cc, final ChatData data) {
        boolean cancel = false;

        final long now = System.currentTimeMillis();

        final CombinedData cData = CombinedData.getData(player);
       
        // Enforce the player does not relog too fast.
        if (now - cData.lastLogoutTime < cc.relogTimeout) {
            if (now - data.relogWarningTime > cc.relogWarningTimeout)
                data.relogWarnings = 0;
View Full Code Here


        }

        if (player.isDead() || player.isSleeping()) return;

        // Feed combined check.
        final CombinedData data = CombinedData.getData(player);
        data.lastMoveTime = now; // TODO: Evaluate moving this to MovingData !?

        final Location from = event.getFrom();
        final String fromWorldName = from.getWorld().getName();
View Full Code Here

      if (fnWords > 0.75f) { // TODO: balance or configure or remove ?
        score += fnWords  * cc.textMessagePartition;
      }
    }
   
    final CombinedData cData = CombinedData.getData(player);
    final long timeout = 8000; // TODO: maybe set dynamically in data.
    // Repetition of last message.
        if (cc.textMsgRepeatSelf != 0f && time - data.chatLastTime < timeout) {
            if (StringUtil.isSimilar(lcMessage, data.chatLastMessage, 0.8f)) {
                final float timeWeight = (float) (timeout - (time - data.chatLastTime)) / (float) timeout;
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.checks.combined.CombinedData

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.