package cloud.swiftnode.kspam.abstraction.checker;

import cloud.swiftnode.kspam.abstraction.Info;
import cloud.swiftnode.kspam.abstraction.SpamChecker;
import cloud.swiftnode.kspam.util.Lang;
import cloud.swiftnode.kspam.util.StaticStorage;

/**
 * Created by Junhyeong Lim on 2017-01-18.
 */
public class ForceChecker extends SpamChecker {
    public ForceChecker(Info info) {
        super(info);
    }

    @Override
    public Result spamCheck() throws Exception {
        lastInfo = String.valueOf(StaticStorage.forceMode);
        if (StaticStorage.forceMode) {
            return Result.DENY;
        }
        return Result.PASS;
    }

    @Override
    public boolean isCaching() {
        return false;
    }

    @Override
    public String denyMsg() {
        return Lang.FORCEMODE_ON.builder().prefix().build();
    }
}

@@ -486,46 +486,19 @@
 o = 
-String.valueOf(StaticStorage.forceMode
+info.getIp(
 );%0A 
@@ -577,16 +577,16 @@
       %7D%0A
+
         
@@ -616,84 +616,8 @@
  %7D%0A%0A
-    @Override%0A    public boolean isCaching() %7B%0A        return false;%0A    %7D%0A%0A
     

Fix ForceChecker code 강제 모드 활성화 중에 접속이 거부될 경우 캐싱도 병행돼야 함