Log Voids interaction

This is just in case the server would crash and not save current score.
log can be used to see what was the last score at some point
This commit is contained in:
Debucquoy Anthony 2024-02-04 21:29:03 +01:00
parent d92a8c6125
commit a7a88bb619
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -67,6 +67,7 @@ public class DatabaseManager {
} }
public void setVoids(UUID uuid, int amount) { public void setVoids(UUID uuid, int amount) {
Bukkit.getLogger().info("[VOIDS] -> " + uuid.toString() + " to " + amount);
try { try {
Statement st = con.createStatement(); Statement st = con.createStatement();
String query = "INSERT OR REPLACE INTO voids (uuid, amount) VALUES (?, ?)"; String query = "INSERT OR REPLACE INTO voids (uuid, amount) VALUES (?, ?)";