Added scripting check to RespectUserEvent

This commit is contained in:
Harmonic 2022-05-06 13:28:21 -07:00
parent aaec588900
commit 06afe1442f

View File

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