diff --git a/src/cc/co/evenprime/bukkit/nocheat/NoCheat.java b/src/cc/co/evenprime/bukkit/nocheat/NoCheat.java index abf64afb..111db31a 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/NoCheat.java +++ b/src/cc/co/evenprime/bukkit/nocheat/NoCheat.java @@ -133,24 +133,12 @@ public class NoCheat extends JavaPlugin implements Listener { return result; } - public int getIngameSeconds() { - if(lagMeasureTask != null) - return lagMeasureTask.getIngameSeconds(); - return 0; - } - public boolean skipCheck() { if(lagMeasureTask != null) return lagMeasureTask.skipCheck(); return false; } - public long getIngameSecondDuration() { - if(lagMeasureTask != null) - return lagMeasureTask.getIngameSecondDuration(); - return 1000L; - } - public void reloadConfiguration() { conf.cleanup(); this.conf = new ConfigurationManager(this, this.getDataFolder()); diff --git a/src/cc/co/evenprime/bukkit/nocheat/debug/LagMeasureTask.java b/src/cc/co/evenprime/bukkit/nocheat/debug/LagMeasureTask.java index 4d17b313..d1e92160 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/debug/LagMeasureTask.java +++ b/src/cc/co/evenprime/bukkit/nocheat/debug/LagMeasureTask.java @@ -28,7 +28,7 @@ public class LagMeasureTask implements Runnable { boolean oldStatus = skipCheck; // If the previous second took to long, skip checks during // this second - skipCheck = lastIngamesecondDuration > 1500; + skipCheck = lastIngamesecondDuration > 2000; if(plugin.getConfig((World) null).logging.debugmessages) { if(oldStatus != skipCheck && skipCheck) { @@ -70,14 +70,6 @@ public class LagMeasureTask implements Runnable { } } - public int getIngameSeconds() { - return ingameseconds; - } - - public long getIngameSecondDuration() { - return lastIngamesecondDuration; - } - public boolean skipCheck() { return skipCheck; }