Merge pull request #57 from mbax/littlefixes

Little fixes of love
This commit is contained in:
H31IX committed 2012-06-11 18:23:45 -07:00
commit 586f586142
3 files changed
+3 -6

No files matched your search

@@ -152,7 +152,7 @@ public class Configuration
config.set("Enable in", w); config.set("Enable in", w);
save(); save();
} }
worlds = (List<String>)(config.getList("Enable in")); worlds = config.getStringList("Enable in");
if(config.getString("XRay.Log xray stats") == null) if(config.getString("XRay.Log xray stats") == null)
{ {
config.set("XRay.Log xray stats", true); config.set("XRay.Log xray stats", true);
@@ -47,9 +47,9 @@ public class EventListener implements Listener
{ {
USAGE_LIST.put(type, getCheats(type)+1); USAGE_LIST.put(type, getCheats(type)+1);
type.logUse(player); type.logUse(player);
if(PLUGIN.getManager().getConfiguration().getFileLogLevel() == 2 && type.getUses(player) % 10 == 0) if(Anticheat.getManager().getConfiguration().getFileLogLevel() == 2 && type.getUses(player) % 10 == 0)
{ {
PLUGIN.getManager().fileLog(player.getName()+" has triggered multiple "+type+" checks."); Anticheat.getManager().fileLog(player.getName()+" has triggered multiple "+type+" checks.");
} }
} }
@@ -19,11 +19,9 @@
package net.h31ix.anticheat.manage; package net.h31ix.anticheat.manage;
import java.io.File; import java.io.File;
import java.io.IOException;
import java.util.logging.*; import java.util.logging.*;
import net.h31ix.anticheat.Anticheat; import net.h31ix.anticheat.Anticheat;
import net.h31ix.anticheat.Configuration; import net.h31ix.anticheat.Configuration;
import net.h31ix.anticheat.util.ConsoleFormatter;
import net.h31ix.anticheat.util.FileFormatter; import net.h31ix.anticheat.util.FileFormatter;
import net.h31ix.anticheat.xray.XRayTracker; import net.h31ix.anticheat.xray.XRayTracker;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
@@ -43,7 +41,6 @@ public class AnticheatManager
private Backend backend = null; private Backend backend = null;
private static Logger LOGGER, FILE_LOGGER; private static Logger LOGGER, FILE_LOGGER;
private static Handler fileHandler; private static Handler fileHandler;
private static Handler consoleHandler;
private static final int LOG_LEVEL_HIGH = 3; private static final int LOG_LEVEL_HIGH = 3;
public AnticheatManager(Anticheat instance) public AnticheatManager(Anticheat instance)