mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Do not flood when triggering a wired
This commit is contained in:
parent
806d747d3b
commit
bfda48c22e
@ -2989,8 +2989,6 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
return;
|
||||
}
|
||||
|
||||
habbo.getHabboStats().chatCounter += 2;
|
||||
|
||||
if (habbo.getHabboInfo().getCurrentRoom() != this)
|
||||
return;
|
||||
|
||||
@ -3002,6 +3000,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
}
|
||||
habbo.getHabboStats().lastChat = millis;
|
||||
if (roomChatMessage != null && roomChatMessage.getMessage().equalsIgnoreCase("i am a pirate")) {
|
||||
habbo.getHabboStats().chatCounter += 2;
|
||||
Emulator.getThreading().run(new YouAreAPirate(habbo, this));
|
||||
return;
|
||||
}
|
||||
@ -3060,6 +3059,8 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
habbo.getHabboStats().chatCounter += 2;
|
||||
|
||||
ServerMessage prefixMessage = roomChatMessage.getHabbo().getHabboInfo().getRank().hasPrefix() ? new RoomUserNameChangedComposer(habbo, true).compose() : null;
|
||||
ServerMessage clearPrefixMessage = prefixMessage != null ? new RoomUserNameChangedComposer(habbo).compose() : null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user