From d021f2ca5c9a25c8fcf5de90bc6bfe7260a7a778 Mon Sep 17 00:00:00 2001 From: xGinko Date: Fri, 20 Dec 2024 15:56:08 +0100 Subject: [PATCH] decrease to 256 chars by default --- .../main/java/me/xginko/aef/modules/packets/BigMessages.java | 2 +- .../main/java/me/xginko/aef/modules/packets/BigMessages.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BigMessages.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BigMessages.java index 2bcd6fb0..3b351c41 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BigMessages.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BigMessages.java @@ -17,7 +17,7 @@ public BigMessages() { super("patches.message-char-limit", PacketListenerPriority.HIGHEST); config.addComment(configPath + ".enable", """ Sets a character limit for command and message packets to prevent a lag exploit."""); - this.charLimit = config.getInt(configPath + ".max-characters", 512); + this.charLimit = config.getInt(configPath + ".max-characters", 256); this.log = config.getBoolean(configPath + ".log", false); this.kick = config.getBoolean(configPath + ".kick-player", false); } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/BigMessages.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/BigMessages.java index a662634f..06068588 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/BigMessages.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/BigMessages.java @@ -17,7 +17,7 @@ public BigMessages() { super("patches.message-char-limit", PacketListenerPriority.HIGHEST); config.addComment(configPath + ".enable", "Sets a character limit for command and message packets to prevent a lag exploit."); - this.charLimit = config.getInt(configPath + ".max-characters", 512); + this.charLimit = config.getInt(configPath + ".max-characters", 256); this.log = config.getBoolean(configPath + ".log", false); this.kick = config.getBoolean(configPath + ".kick-player", false); }