mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Housework
This commit is contained in:
1 parent
51679148fe
commit
573291bd14
4 files changed
+5
-9
No files matched your search
@@ -26,6 +26,7 @@ import net.h31ix.anticheat.Configuration;
|
|||||||
import net.h31ix.anticheat.util.ConsoleFormatter;
|
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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -81,11 +82,11 @@ public class AnticheatManager
|
|||||||
{
|
{
|
||||||
if(getConfiguration().logConsole())
|
if(getConfiguration().logConsole())
|
||||||
{
|
{
|
||||||
LOGGER.warning(message);
|
LOGGER.warning(ChatColor.stripColor(message)); //This is temporary. Is something wrong with jline?
|
||||||
}
|
}
|
||||||
if(getConfiguration().getFileLogLevel() == LOG_LEVEL_HIGH)
|
if(getConfiguration().getFileLogLevel() == LOG_LEVEL_HIGH)
|
||||||
{
|
{
|
||||||
fileLog(message);
|
fileLog(ChatColor.stripColor(message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,10 @@
|
|||||||
|
|
||||||
package net.h31ix.anticheat.manage;
|
package net.h31ix.anticheat.manage;
|
||||||
|
|
||||||
import net.h31ix.anticheat.util.Utilities;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import net.h31ix.anticheat.Configuration;
|
import net.h31ix.anticheat.Configuration;
|
||||||
|
import net.h31ix.anticheat.util.Utilities;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|||||||
@@ -1,14 +1,9 @@
|
|||||||
package net.h31ix.anticheat.util;
|
package net.h31ix.anticheat.util;
|
||||||
|
|
||||||
import java.text.DateFormat;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.logging.Formatter;
|
import java.util.logging.Formatter;
|
||||||
import java.util.logging.LogRecord;
|
import java.util.logging.LogRecord;
|
||||||
|
|
||||||
public class ConsoleFormatter extends Formatter {
|
public class ConsoleFormatter extends Formatter {
|
||||||
|
|
||||||
private static final DateFormat format = new SimpleDateFormat("h:mm:ss");
|
|
||||||
private static final String lineSep = System.getProperty("line.separator");
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String format(LogRecord record) {
|
public String format(LogRecord record) {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public final class Utilities
|
|||||||
{
|
{
|
||||||
for(String msg : message)
|
for(String msg : message)
|
||||||
{
|
{
|
||||||
Anticheat.getManager().log(ChatColor.stripColor(msg));
|
Anticheat.getManager().log(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user