summaryrefslogtreecommitdiffstats
path: root/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/config/LoggingConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/config/LoggingConfig.java')
-rw-r--r--EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/config/LoggingConfig.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/config/LoggingConfig.java b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/config/LoggingConfig.java
new file mode 100644
index 000000000..9875c7715
--- /dev/null
+++ b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/config/LoggingConfig.java
@@ -0,0 +1,29 @@
+package com.earth2me.essentials.anticheat.config;
+
+
+/**
+ * Configurations specific for logging. Every world gets one of these.
+ *
+ */
+public class LoggingConfig
+{
+ public final boolean active;
+ public final boolean showactivechecks;
+ public final boolean toFile;
+ public final boolean toConsole;
+ public final boolean toChat;
+ public final String prefix;
+ public final boolean debugmessages;
+
+ public LoggingConfig(NoCheatConfiguration data)
+ {
+
+ active = data.getBoolean(ConfPaths.LOGGING_ACTIVE);
+ showactivechecks = data.getBoolean(ConfPaths.LOGGING_SHOWACTIVECHECKS);
+ debugmessages = data.getBoolean(ConfPaths.LOGGING_DEBUGMESSAGES);
+ prefix = data.getString(ConfPaths.LOGGING_PREFIX);
+ toFile = data.getBoolean(ConfPaths.LOGGING_LOGTOFILE);
+ toConsole = data.getBoolean(ConfPaths.LOGGING_LOGTOCONSOLE);
+ toChat = data.getBoolean(ConfPaths.LOGGING_LOGTOINGAMECHAT);
+ }
+}