mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-19 20:02:35 +01:00
Added scripting check to RoomUserGiveRespectEvent
This commit is contained in:
parent
0a6355996a
commit
647b4af9d9
@ -10,6 +10,10 @@ public class RoomUserGiveRespectEvent extends MessageHandler {
|
|||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
int userId = this.packet.readInt();
|
int userId = this.packet.readInt();
|
||||||
|
|
||||||
|
if (userId == client.getHabbo().getHabboInfo().getId()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.client.getHabbo().getHabboStats().respectPointsToGive > 0) {
|
if (this.client.getHabbo().getHabboStats().respectPointsToGive > 0) {
|
||||||
Habbo target = this.client.getHabbo().getHabboInfo().getCurrentRoom().getHabbo(userId);
|
Habbo target = this.client.getHabbo().getHabboInfo().getCurrentRoom().getHabbo(userId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user