mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Merge branch 'revert-a6721ba5' into 'dev'
Revert "Merge branch 'fix-chat-exploit' into 'dev'" See merge request morningstar/Arcturus-Community!230
This commit is contained in:
commit
f51bbc52a4
@ -3040,20 +3040,6 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
if (habbo.getHabboInfo().getCurrentRoom() != this)
|
if (habbo.getHabboInfo().getCurrentRoom() != this)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!habbo.hasPermission(Permission.ACC_CHAT_NO_FLOOD) && habbo.getHabboStats().chatCounter > 0) {
|
|
||||||
int chatCounter = habbo.getHabboStats().chatCounter - 1;
|
|
||||||
|
|
||||||
if (chatCounter > 3 && !this.hasRights(habbo)) {
|
|
||||||
if (this.chatProtection == 0) {
|
|
||||||
this.floodMuteHabbo(habbo, 30);
|
|
||||||
} else if (this.chatProtection == 1 && chatCounter > 4) {
|
|
||||||
this.floodMuteHabbo(habbo, 30);
|
|
||||||
} else if (this.chatProtection == 2 && chatCounter > 5) {
|
|
||||||
this.floodMuteHabbo(habbo, 30);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
long millis = System.currentTimeMillis();
|
long millis = System.currentTimeMillis();
|
||||||
if (HABBO_CHAT_DELAY) {
|
if (HABBO_CHAT_DELAY) {
|
||||||
if (millis - habbo.getHabboStats().lastChat < 750) {
|
if (millis - habbo.getHabboStats().lastChat < 750) {
|
||||||
|
Loading…
Reference in New Issue
Block a user