Adjusted autoClearLogDelay

This commit is contained in:
DiddiZ
2012-01-09 01:28:05 +01:00
parent e79b6f4262
commit 85e43285fb
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ public class Config extends LoggingEnabledMapping
def.put("clearlog.dumpDeletedLog", false);
def.put("clearlog.enableAutoClearLog", false);
def.put("clearlog.auto", Arrays.asList("world \"world\" before 365 days all", "world \"world\" player lavaflow waterflow leavesdecay before 7 days all", "world world_nether before 365 days all", "world world_nether player lavaflow before 7 days all"));
def.put("clearlog.clearlog.autoClearLogDelay", "1h");
def.put("clearlog.clearlog.autoClearLogDelay", "6h");
def.put("logging.logCreeperExplosionsAsPlayerWhoTriggeredThese", false);
def.put("logging.logKillsLevel", "PLAYERS");
def.put("logging.logPlayerInfo", true);

View File

@@ -114,7 +114,7 @@ public class LogBlock extends JavaPlugin
} else
getLogger().info("[LogBlock] Permissions plugin not found. Using Bukkit Permissions.");
if (config.enableAutoClearLog && config.autoClearLogDelay > 0)
getServer().getScheduler().scheduleAsyncRepeatingTask(this, new AutoClearLog(this), config.autoClearLogDelay * 20, config.autoClearLogDelay * 20);
getServer().getScheduler().scheduleAsyncRepeatingTask(this, new AutoClearLog(this), 6000, config.autoClearLogDelay * 20);
getServer().getScheduler().scheduleAsyncDelayedTask(this, new DumpedLogImporter(this));
final Listener lbBlockListener = new LBBlockListener(this);
final Listener lbPlayerListener = new LBPlayerListener(this);