Added scripting check to RoomUserGiveRespectEvent

This commit is contained in:
Yordi 2024-10-16 10:21:53 +02:00
parent 0a6355996a
commit 647b4af9d9

View File

@ -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);