SPIGOT-4116: Increase command tab spam threshold
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f07fb63fb3
commit
23e5ec669f
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@
|
||||||
public void a(PacketPlayInTabComplete packetplayintabcomplete) {
|
public void a(PacketPlayInTabComplete packetplayintabcomplete) {
|
||||||
PlayerConnectionUtils.ensureMainThread(packetplayintabcomplete, this, this.player.getWorldServer());
|
PlayerConnectionUtils.ensureMainThread(packetplayintabcomplete, this, this.player.getWorldServer());
|
||||||
+ // CraftBukkit start
|
+ // 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]));
|
+ this.disconnect(new ChatMessage("disconnect.spam", new Object[0]));
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue