From 1efa38fefca86aea231eef064a04c2465c72aa55 Mon Sep 17 00:00:00 2001 From: Swirny Date: Fri, 22 May 2020 19:48:24 +0200 Subject: [PATCH] Added CFH counter --- .../eu/habbo/threading/runnables/UpdateModToolIssue.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java b/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java index 70ea304b..2f6d043c 100644 --- a/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java +++ b/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java @@ -30,5 +30,12 @@ public class UpdateModToolIssue implements Runnable { } catch (SQLException e) { LOGGER.error("Caught SQL exception", e); } + try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE users_settings SET cfh_send = cfh_send + ? WHERE user_id = ?")) { + statement.setInt(1, 1); + statement.setInt(2, this.issue.senderId); + statement.execute(); + } catch (SQLException e) { + LOGGER.error("Caught SQL exception", e); + } } }