From 06afe1442f0959862f14c3c4cfbc748ef9fea1ba Mon Sep 17 00:00:00 2001 From: Harmonic Date: Fri, 6 May 2022 13:28:21 -0700 Subject: [PATCH] Added scripting check to RespectUserEvent --- .../habbo/messages/incoming/rooms/users/RespectUserEvent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RespectUserEvent.java b/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RespectUserEvent.java index ef4f2a75..9cca2fb5 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RespectUserEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RespectUserEvent.java @@ -10,6 +10,10 @@ public class RespectUserEvent 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);