Merge branch 'script-fix-respect-user' into 'dev'

Added scripting check to RoomUserGiveRespectEvent

See merge request morningstar/Arcturus-Community!100
This commit is contained in:
ArpyAge 2024-10-17 21:54:34 +00:00
commit 6bada8c606

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