Don't use minecraft logger
Part of 1 of a zillion bad practices to fix
This commit is contained in:
parent
ebfef4d688
commit
a70cde344f
|
|
@ -73,7 +73,7 @@ public class GriefPrevention extends JavaPlugin
|
||||||
public static GriefPrevention instance;
|
public static GriefPrevention instance;
|
||||||
|
|
||||||
//for logging to the console and log file
|
//for logging to the console and log file
|
||||||
private static Logger log = Logger.getLogger("Minecraft");
|
private static Logger log;
|
||||||
|
|
||||||
//this handles data storage, like player and region data
|
//this handles data storage, like player and region data
|
||||||
public DataStore dataStore;
|
public DataStore dataStore;
|
||||||
|
|
@ -231,7 +231,7 @@ public class GriefPrevention extends JavaPlugin
|
||||||
{
|
{
|
||||||
GriefPrevention.instance.customLogger.AddEntry(entry, customLogType);
|
GriefPrevention.instance.customLogger.AddEntry(entry, customLogType);
|
||||||
}
|
}
|
||||||
if(!excludeFromServerLogs) log.info("GriefPrevention: " + entry);
|
if(!excludeFromServerLogs) log.info(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static synchronized void AddLogEntry(String entry, CustomLogEntryTypes customLogType)
|
public static synchronized void AddLogEntry(String entry, CustomLogEntryTypes customLogType)
|
||||||
|
|
@ -248,8 +248,7 @@ public class GriefPrevention extends JavaPlugin
|
||||||
public void onEnable()
|
public void onEnable()
|
||||||
{
|
{
|
||||||
instance = this;
|
instance = this;
|
||||||
|
log = instance.getLogger();
|
||||||
AddLogEntry("Grief Prevention boot start.");
|
|
||||||
|
|
||||||
this.loadConfig();
|
this.loadConfig();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user