v1.1.3: Fix config/code consistency issues
- SpeedCheck: tps.enabled and tps.min_tps_threshold now work (was hardcoded) - ConfigManager/config.yml: Removed orphaned async_task_threads and commands.* keys - PunishmentManager: database.enabled now correctly disables SQLite logging - PacketListener: Removed dead code (updatePacketTiming, recordClick, recordAttack)
This commit is contained in:
@@ -27,7 +27,6 @@ public class ConfigManager {
|
||||
// General
|
||||
DEFAULTS.put("enabled", true);
|
||||
DEFAULTS.put("debug", false);
|
||||
DEFAULTS.put("async_task_threads", 2);
|
||||
|
||||
// Violation
|
||||
DEFAULTS.put("violation.decay_interval", 30);
|
||||
@@ -172,11 +171,6 @@ public class ConfigManager {
|
||||
DEFAULTS.put("alerts.staff_format", "<gray>[%time%] %message%");
|
||||
DEFAULTS.put("alerts.cooldown_ms", 5000);
|
||||
|
||||
// Commands
|
||||
DEFAULTS.put("commands.reload_permission", "xac.admin");
|
||||
DEFAULTS.put("commands.bypass_permission", "xac.bypass");
|
||||
DEFAULTS.put("commands.alerts_permission", "xac.alerts");
|
||||
|
||||
// TPS
|
||||
DEFAULTS.put("tps.enabled", true);
|
||||
DEFAULTS.put("tps.min_tps_threshold", 18.0);
|
||||
|
||||
@@ -207,7 +207,8 @@ public class PunishmentManager {
|
||||
}
|
||||
|
||||
DatabaseManager db = plugin.getDatabaseManager();
|
||||
if (db != null && db.isAvailable()) {
|
||||
boolean dbEnabled = plugin.getConfigManager().getBoolean("database.enabled", true);
|
||||
if (db != null && db.isAvailable() && dbEnabled) {
|
||||
db.insertPunishment(timestamp, type, playerUuid, playerName, checkName, vl);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user