summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2015-02-20 15:17:38 +1100
committermd_5 <git@md-5.net>2015-02-20 15:17:45 +1100
commitb6e327256ca1e852d62c6f383b2fa9f4c772a86f (patch)
tree1192df50cc5e70c316062137f4c59cc93cfef6d8
parent3fc97ff11afab22df66c4ca9a6ed3f9cf2552670 (diff)
downloadcraftbukkit-b6e327256ca1e852d62c6f383b2fa9f4c772a86f.tar
craftbukkit-b6e327256ca1e852d62c6f383b2fa9f4c772a86f.tar.gz
craftbukkit-b6e327256ca1e852d62c6f383b2fa9f4c772a86f.tar.lz
craftbukkit-b6e327256ca1e852d62c6f383b2fa9f4c772a86f.tar.xz
craftbukkit-b6e327256ca1e852d62c6f383b2fa9f4c772a86f.zip
Make tab complete spam check more lenient.
-rw-r--r--nms-patches/PlayerConnection.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch
index 3ef33867..38c8b999 100644
--- a/nms-patches/PlayerConnection.patch
+++ b/nms-patches/PlayerConnection.patch
@@ -1,5 +1,5 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/PlayerConnection.java 2015-01-06 20:20:56.507791620 +0000
-+++ src/main/java/net/minecraft/server/PlayerConnection.java 2015-01-06 20:20:56.507791620 +0000
+--- ../work/decompile-8eb82bde/net/minecraft/server/PlayerConnection.java 2015-02-20 15:17:19.419840293 +1100
++++ src/main/java/net/minecraft/server/PlayerConnection.java 2015-02-20 15:17:19.423840297 +1100
@@ -16,6 +16,48 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -1363,7 +1363,7 @@
public void a(PacketPlayInTabComplete packetplayintabcomplete) {
PlayerConnectionUtils.ensureMainThread(packetplayintabcomplete, this, this.player.u());
+ // CraftBukkit start
-+ if (chatSpamField.addAndGet(this, 20) > 200 && !this.minecraftServer.getPlayerList().isOp(this.player.getProfile())) {
++ if (chatSpamField.addAndGet(this, 10) > 500 && !this.minecraftServer.getPlayerList().isOp(this.player.getProfile())) {
+ this.disconnect("disconnect.spam");
+ return;
+ }