9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-20 23:39:16 +00:00

new options

This commit is contained in:
NONPLAYT
2025-03-15 22:23:30 +03:00
parent 13fbd60a09
commit 31d25a5bc3
11 changed files with 176 additions and 21 deletions

View File

@@ -5,10 +5,10 @@ Subject: [PATCH] Block Log4Shell exploit
diff --git a/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/net/minecraft/server/network/ServerGamePacketListenerImpl.java
index e91232064a5024859954a04f549cb3b6e78da6bd..2dc21a17ece24dc3f6ab7002fb4a8379c82da787 100644
index b2881d1b0cc2bc172dd21349e07b7e6f89bd996c..c96c13ff7e2f0f62166e429dcb66ff5217604c32 100644
--- a/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+++ b/net/minecraft/server/network/ServerGamePacketListenerImpl.java
@@ -2419,6 +2419,7 @@ public class ServerGamePacketListenerImpl
@@ -2425,6 +2425,7 @@ public class ServerGamePacketListenerImpl
}
private void tryHandleChat(String message, Runnable handler, boolean sync) { // CraftBukkit
@@ -16,7 +16,7 @@ index e91232064a5024859954a04f549cb3b6e78da6bd..2dc21a17ece24dc3f6ab7002fb4a8379
if (isChatMessageIllegal(message)) {
this.disconnectAsync(Component.translatable("multiplayer.disconnect.illegal_characters"), org.bukkit.event.player.PlayerKickEvent.Cause.ILLEGAL_CHARACTERS); // Paper - add proper async disconnect
} else if (this.player.isRemoved() || this.player.getChatVisibility() == ChatVisiblity.HIDDEN) { // CraftBukkit - dead men tell no tales
@@ -2447,6 +2448,15 @@ public class ServerGamePacketListenerImpl
@@ -2453,6 +2454,15 @@ public class ServerGamePacketListenerImpl
}
}