From 647b4af9d9456543e35ba32968c1840300aff472 Mon Sep 17 00:00:00 2001 From: Yordi Date: Wed, 16 Oct 2024 10:21:53 +0200 Subject: [PATCH] Added scripting check to RoomUserGiveRespectEvent --- .../incoming/rooms/users/RoomUserGiveRespectEvent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserGiveRespectEvent.java b/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserGiveRespectEvent.java index d2a46a40..c693d883 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserGiveRespectEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserGiveRespectEvent.java @@ -10,6 +10,10 @@ public class RoomUserGiveRespectEvent extends MessageHandler { public void handle() throws Exception { int userId = this.packet.readInt(); + if (userId == client.getHabbo().getHabboInfo().getId()) { + return; + } + if (this.client.getHabbo().getHabboStats().respectPointsToGive > 0) { Habbo target = this.client.getHabbo().getHabboInfo().getCurrentRoom().getHabbo(userId);