- Fix spam countdown resetting if you speak too early.

This commit is contained in:
Llm Dl committed 2020-11-20 19:24:47 -06:00
1 parent 61f5b27aa8
commit 8088af95d9
2 files changed
+3 -3

No files matched your search

+2 -1
View File
@@ -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;
}