summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-23 18:33:29 +1000
committermd_5 <git@md-5.net>2018-07-23 18:33:29 +1000
commit587014503baa1ccdfb835404e1a88f1c0e1915d5 (patch)
treef097183ee948c0e04049e9b55f1df237ddc30160 /nms-patches
parent30ab12cf4ceea49628d27e66fb06f00b9b29aa57 (diff)
downloadcraftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar
craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar.gz
craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar.lz
craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar.xz
craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.zip
SPIGOT-4116: Increase command tab spam threshold
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/PlayerConnection.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch
index 72d9f7d5..e63a5353 100644
--- a/nms-patches/PlayerConnection.patch
+++ b/nms-patches/PlayerConnection.patch
@@ -289,7 +289,7 @@
public void a(PacketPlayInTabComplete packetplayintabcomplete) {
PlayerConnectionUtils.ensureMainThread(packetplayintabcomplete, this, this.player.getWorldServer());
+ // CraftBukkit start
-+ if (chatSpamField.addAndGet(this, 5) > 500 && !this.minecraftServer.getPlayerList().isOp(this.player.getProfile())) {
++ if (chatSpamField.addAndGet(this, 2) > 500 && !this.minecraftServer.getPlayerList().isOp(this.player.getProfile())) {
+ this.disconnect(new ChatMessage("disconnect.spam", new Object[0]));
+ return;
+ }