mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-25 13:49:12 +02:00
30 lines
883 B
Java
30 lines
883 B
Java
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);
|
|
}
|
|
}
|