mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 22:15:22 +00:00
Correct enterprise logging values, ignore event life of zero.
This commit is contained in:
1 parent
34845dd6db
commit
a08a558bc2
3 files changed
+5
-4
No files matched your search
@@ -48,9 +48,9 @@ public class Enterprise extends ConfigurationFile {
|
||||
public void open() {
|
||||
serverName = new ConfigValue<String>("server.name");
|
||||
|
||||
loggingEnabled = new ConfigValue<Boolean>("logging.enable");
|
||||
loggingLife = new ConfigValue<Integer>("logging.life");
|
||||
loggingInterval = new ConfigValue<Integer>("logging.interval");
|
||||
loggingEnabled = new ConfigValue<Boolean>("log.enable");
|
||||
loggingLife = new ConfigValue<Integer>("log.life");
|
||||
loggingInterval = new ConfigValue<Integer>("log.interval");
|
||||
|
||||
syncUsers = new ConfigValue<Boolean>("sync.users");
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ import net.h31ix.anticheat.config.Configuration;
|
||||
import net.h31ix.anticheat.config.ConfigurationFile;
|
||||
import net.h31ix.anticheat.config.providers.Events;
|
||||
import net.h31ix.anticheat.util.Level;
|
||||
import net.h31ix.anticheat.util.Utilities;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
@@ -182,6 +182,7 @@ public class Database {
|
||||
}
|
||||
|
||||
public void cleanEvents() {
|
||||
if (eventLife != 0) {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(AntiCheat.getPlugin(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@@ -199,4 +200,5 @@ public class Database {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user