mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00: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)
|
||||||
|
|||||||
Reference in new issue
Block a user