Cleanup
This commit is contained in:
parent
1c5d4d697a
commit
451a570c73
@ -21,7 +21,6 @@ public final class ConsoleLogger {
|
|||||||
private static final String NEW_LINE = System.getProperty("line.separator");
|
private static final String NEW_LINE = System.getProperty("line.separator");
|
||||||
private static final DateFormat DATE_FORMAT = new SimpleDateFormat("[MM-dd HH:mm:ss]");
|
private static final DateFormat DATE_FORMAT = new SimpleDateFormat("[MM-dd HH:mm:ss]");
|
||||||
private static Logger logger;
|
private static Logger logger;
|
||||||
private static boolean enableDebug = false;
|
|
||||||
private static boolean useLogging = false;
|
private static boolean useLogging = false;
|
||||||
private static File logFile;
|
private static File logFile;
|
||||||
private static FileWriter fileWriter;
|
private static FileWriter fileWriter;
|
||||||
@ -39,7 +38,6 @@ public final class ConsoleLogger {
|
|||||||
|
|
||||||
public static void setLoggingOptions(NewSetting settings) {
|
public static void setLoggingOptions(NewSetting settings) {
|
||||||
ConsoleLogger.useLogging = settings.getProperty(SecuritySettings.USE_LOGGING);
|
ConsoleLogger.useLogging = settings.getProperty(SecuritySettings.USE_LOGGING);
|
||||||
ConsoleLogger.enableDebug = !settings.getProperty(SecuritySettings.REMOVE_SPAM_FROM_CONSOLE);
|
|
||||||
if (useLogging) {
|
if (useLogging) {
|
||||||
if (fileWriter == null) {
|
if (fileWriter == null) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -28,9 +28,6 @@ public class BungeeCordMessage implements PluginMessageListener {
|
|||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private PlayerCache playerCache;
|
private PlayerCache playerCache;
|
||||||
|
|
||||||
@Inject
|
|
||||||
private SessionManager sessionManager;
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private NewSetting settings;
|
private NewSetting settings;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user