- New Permission Node: townychat.spam.bypass

- Defaults to ops.
    - Bypasses spam check.
This commit is contained in:
Llm Dl committed 2019-11-14 07:23:03 -06:00
1 parent 78c7bd146b
commit 0a92c5ac1c
3 files changed
+10 -3

No files matched your search

+4 -1
View File
@@ -276,4 +276,7 @@ v0.63:
- You do not have to set a spam_time for each channel, only the ones you want limited.
- setting spam_time: '0.5' in your general channel will make the global channel behave as normal.
- default channels.yml has spam_time: '0.5' set for general, town, nation and alliance channels; remaining channels have no spam_time set.
- in your chatconfig.yml you can remove the "spam_time: '0.5'" line before or after updating.
- in your chatconfig.yml you can remove the "spam_time: '0.5'" line before or after updating.
- New Permission Node: townychat.spam.bypass
- Defaults to ops.
- Bypasses spam check.
+4 -1
View File
@@ -53,4 +53,7 @@ permissions:
townychat.chat.format.strike: true
townychat.chat.format.reset:
description: Allows the use of &r to reset chat formatting.
default: true
default: true
townychat.spam.bypass:
description: Keeps a player from getting stopped by spam checks.
default: op
@@ -254,7 +254,8 @@ public abstract class Channel {
* @return
*/
public boolean isSpam(Player player) {
if (!player.hasPermission("townychat.spam.bypass"))
return false;
long timeNow = System.currentTimeMillis();
long spam = timeNow;