mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 22:21:52 +00:00
- Fix spam countdown resetting if you speak too early.
This commit is contained in:
1 parent
61f5b27aa8
commit
8088af95d9
2 files changed
+2
-2
No files matched your search
@@ -348,3 +348,4 @@ v0.82:
|
|||||||
- Should solve load order issues.
|
- Should solve load order issues.
|
||||||
v0.83:
|
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);
|
spam -= ((getSpam_time() + 1)*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
Spammers.put(player, timeNow);
|
|
||||||
|
|
||||||
if (timeNow - spam < (getSpam_time()*1000)) {
|
if (timeNow - spam < (getSpam_time()*1000)) {
|
||||||
|
Spammers.put(player, timeNow);
|
||||||
TownyMessaging.sendErrorMsg(player, Translation.of("tc_err_unable_to_talk_you_are_spamming"));
|
TownyMessaging.sendErrorMsg(player, Translation.of("tc_err_unable_to_talk_you_are_spamming"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user