3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-16 11:30:06 +01:00

Add Spigot binary patch 20141113a

Dieser Commit ist enthalten in:
Zach Brown 2014-11-13 20:46:01 -06:00
Ursprung b697c4d506
Commit 4100c7f703

Datei anzeigen

@ -0,0 +1,26 @@
From 1a72afa69bf31016e7b053e0c70393eb5062a76f 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 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