diff options
author | md_5 <git@md-5.net> | 2018-07-23 18:33:29 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-23 18:33:29 +1000 |
commit | 587014503baa1ccdfb835404e1a88f1c0e1915d5 (patch) | |
tree | f097183ee948c0e04049e9b55f1df237ddc30160 /nms-patches | |
parent | 30ab12cf4ceea49628d27e66fb06f00b9b29aa57 (diff) | |
download | craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar.gz craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar.lz craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.tar.xz craftbukkit-587014503baa1ccdfb835404e1a88f1c0e1915d5.zip |
SPIGOT-4116: Increase command tab spam threshold
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/PlayerConnection.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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; + } |