mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Chat spam cache should last seconds, not minutes
This commit is contained in:
1 parent
ea8f42a564
commit
5dcd67c8b3
1 file changed
+1
-1
@@ -747,7 +747,7 @@ public class Backend {
|
||||
}
|
||||
Long l = user.getMessageTime(i);
|
||||
|
||||
if(System.currentTimeMillis() - l > magic.CHAT_REPEAT_MIN * 1000) {
|
||||
if(System.currentTimeMillis() - l > magic.CHAT_REPEAT_MIN * 100) {
|
||||
user.clearMessages();
|
||||
break;
|
||||
} else if((m.equalsIgnoreCase(msg) && i == 1) || System.currentTimeMillis() - user.getLastMessageTime() < magic.CHAT_MIN * 2) {
|
||||
|
||||
Reference in new issue
Block a user