mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
Add Spigot binary patch 20141113a
This commit is contained in:
parent
3a304401b4
commit
0dc6acba77
1 changed files with 24 additions and 0 deletions
24
CraftBukkit-Patches/0187-Spigot-Update-20141113a.patch
Normal file
24
CraftBukkit-Patches/0187-Spigot-Update-20141113a.patch
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: md_5 <git@md-5.net>
|
||||||
|
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
|
@@ -0,0 +0,0 @@ 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();
|
||||||
|
|
||||||
|
--
|
Loading…
Reference in a new issue