Improve tag parser handling, move hunks out of chunk system patch

This commit is contained in:
Nassim Jahnke
2024-02-05 12:31:51 +01:00
parent f2da18d62e
commit 679f34297e
8 changed files with 222 additions and 115 deletions

View File

@@ -47,6 +47,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
// CraftBukkit start
- if (this.chatSpamTickCount.addAndGet(1) > 500 && !this.server.getPlayerList().isOp(this.player.getGameProfile())) {
+ if (this.chatSpamTickCount.addAndGet(io.papermc.paper.configuration.GlobalConfiguration.get().spamLimiter.tabSpamIncrement) > io.papermc.paper.configuration.GlobalConfiguration.get().spamLimiter.tabSpamLimit && !this.server.getPlayerList().isOp(this.player.getGameProfile())) { // Paper - configurable tab spam limits
server.scheduleOnMain(() -> this.disconnect(Component.translatable("disconnect.spam"))); // Paper - AsyncTabCompleteEvent
this.disconnect(Component.translatable("disconnect.spam"));
return;
}