Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2025-01-07 05:40:11 +01:00
SPIGOT-4116: Tweak tab complete spam since the client appears to be duplicating packets
Dieser Commit ist enthalten in:
Ursprung
1486c29516
Commit
6304ccd95f
@ -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, 2) > 500 && !this.minecraftServer.getPlayerList().isOp(this.player.getProfile())) {
|
+ if (chatSpamField.addAndGet(this, 1) > 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;
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren