Archiviert
13
0

SPIGOT-4116: Increase command tab spam threshold

Dieser Commit ist enthalten in:
md_5 2018-07-23 18:33:29 +10:00
Ursprung 30ab12cf4c
Commit 587014503b

Datei anzeigen

@ -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;
+ }