From 587014503baa1ccdfb835404e1a88f1c0e1915d5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 23 Jul 2018 18:33:29 +1000 Subject: SPIGOT-4116: Increase command tab spam threshold --- nms-patches/PlayerConnection.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nms-patches') 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; + } -- cgit v1.2.3