Remove some no longer needed "lag" detection methods

This commit is contained in:
Evenprime 2012-02-05 19:01:32 +01:00
parent 026d6ef00e
commit bf7ac37cb1
2 changed files with 1 additions and 21 deletions

View File

@ -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());

View File

@ -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;
}