Add config option for command spam whitelist
This commit is contained in:
@@ -1561,7 +1561,7 @@
|
||||
}
|
||||
|
||||
return optional;
|
||||
@@ -1451,22 +_,155 @@
|
||||
@@ -1451,22 +_,157 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1707,9 +1707,11 @@
|
||||
+ // Spigot start - spam exclusions
|
||||
+ private void detectRateSpam(String message) {
|
||||
+ // CraftBukkit start - replaced with thread safe throttle
|
||||
+ for (String exclude : org.spigotmc.SpigotConfig.spamExclusions) {
|
||||
+ if (exclude != null && message.startsWith(exclude)) {
|
||||
+ return;
|
||||
+ if (org.spigotmc.SpigotConfig.enableSpamExclusions) {
|
||||
+ for (String exclude : org.spigotmc.SpigotConfig.spamExclusions) {
|
||||
+ if (exclude != null && message.startsWith(exclude)) {
|
||||
+ return;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ // Spigot end
|
||||
|
||||
Reference in New Issue
Block a user