summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZach Brown <[email protected]>2014-11-13 20:46:01 -0600
committerZach Brown <[email protected]>2014-11-28 14:19:09 -0600
commit4100c7f70310aaced4226baa19a8097543f822f1 (patch)
treef9377abfded738e9ae8899d5663cdccdd1c80876
parentb697c4d506e643c7b6590e0ded33658b112ae1ff (diff)
downloadPaper-4100c7f70310aaced4226baa19a8097543f822f1.tar.gz
Paper-4100c7f70310aaced4226baa19a8097543f822f1.zip
Add Spigot binary patch 20141113a
-rw-r--r--CraftBukkit-Patches/0187-Spigot-Update-20141113a.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0187-Spigot-Update-20141113a.patch b/CraftBukkit-Patches/0187-Spigot-Update-20141113a.patch
new file mode 100644
index 0000000000..3a0322ed51
--- /dev/null
+++ b/CraftBukkit-Patches/0187-Spigot-Update-20141113a.patch
@@ -0,0 +1,26 @@
+From 1a72afa69bf31016e7b053e0c70393eb5062a76f Mon Sep 17 00:00:00 2001
+From: md_5 <[email protected]>
+Date: Thu, 13 Nov 2014 20:41:31 -0600
+Subject: [PATCH] Spigot Update - 20141113a
+
+
+diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
+index 26ce4ed..8d60366 100644
+--- a/src/main/java/net/minecraft/server/PlayerConnection.java
++++ b/src/main/java/net/minecraft/server/PlayerConnection.java
+@@ -1753,6 +1753,12 @@ public class PlayerConnection implements PacketPlayInListener {
+ }
+
+ public void a(PacketPlayInTabComplete packetplayintabcomplete) {
++ // Spigot start - Update 20141113a
++ if (PlayerConnection.chatSpamField.addAndGet(this, 20) > 200 && !this.minecraftServer.getPlayerList().isOp(this.player.getProfile())) {
++ this.disconnect("disconnect.spam");
++ return;
++ }
++ // Spigot end
+ ArrayList arraylist = Lists.newArrayList();
+ Iterator iterator = this.minecraftServer.a(this.player, packetplayintabcomplete.c()).iterator();
+
+--
+1.9.1
+