mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
- Fix spam countdown resetting if you speak too early.
This commit is contained in:
1 parent
61f5b27aa8
commit
8088af95d9
2 files changed
+3
-3
No files matched your search
@@ -347,4 +347,5 @@ v0.82:
|
||||
- Fix Towny not being in the depend list (instead of the softdepend list.)
|
||||
- Should solve load order issues.
|
||||
v0.83:
|
||||
- Fix townychat.spam.bypass doing the opposite of its job.
|
||||
- Fix townychat.spam.bypass doing the opposite of its job.
|
||||
- Fix spam countdown resetting if you speak too early.
|
||||
@@ -267,9 +267,8 @@ public abstract class Channel {
|
||||
spam -= ((getSpam_time() + 1)*1000);
|
||||
}
|
||||
|
||||
Spammers.put(player, timeNow);
|
||||
|
||||
if (timeNow - spam < (getSpam_time()*1000)) {
|
||||
Spammers.put(player, timeNow);
|
||||
TownyMessaging.sendErrorMsg(player, Translation.of("tc_err_unable_to_talk_you_are_spamming"));
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user