mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-4116: Increase command tab spam threshold
This commit is contained in:
parent
30ab12cf4c
commit
587014503b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue