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:
2026-03-15 12:47:43 -03:00
parent 95e0915d67
commit a4a87e62de
8 changed files with 17 additions and 76 deletions

View File

@@ -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);
}
});