From 754de3d248b8ffc69b1f1980fa4144f87a0219ba Mon Sep 17 00:00:00 2001 From: duckietm Date: Mon, 8 Apr 2024 13:53:55 +0200 Subject: [PATCH] update: improve flood detection --- .../src/main/java/com/eu/habbo/habbohotel/rooms/Room.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java b/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java index 29e238e4..123e41fe 100644 --- a/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -3176,10 +3176,13 @@ public class Room implements Comparable, ISerialize, Runnable { final boolean hasRights = this.hasRights(habbo); if (floodRights || !hasRights) { - if (this.chatProtection == 0) { + this.floodMuteHabbo(habbo, muteTime); + return; + + /*if (this.chatProtection == 0) { this.floodMuteHabbo(habbo, muteTime); return; - } /* else if (this.chatProtection == 1 && chatCounter > 4) { + } else if (this.chatProtection == 1 && chatCounter > 4) { this.floodMuteHabbo(habbo, muteTime); return; } else if (this.chatProtection == 2 && chatCounter > 5) {