Paper/patches/server/0396-Broadcast-join-message-to-console.patch

22 lines
1.2 KiB
Diff
Raw Normal View History

2021-06-11 14:02:28 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: AvrooVulcan <avrovulcan.programming@gmail.com>
Date: Fri, 17 Apr 2020 00:15:23 +0100
Subject: [PATCH] Broadcast join message to console
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
index 903a816ec6f4d1a9c82b7e32bd2b4fc9b78f3a5c..bb7260a179de2652accb79b5bd0f0e6624163ab4 100644
2021-06-11 14:02:28 +02:00
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
2021-11-24 12:06:34 +01:00
@@ -293,7 +293,9 @@ public abstract class PlayerList {
2021-06-11 14:02:28 +02:00
if (jm != null && !jm.equals(net.kyori.adventure.text.Component.empty())) { // Paper - Adventure
joinMessage = PaperAdventure.asVanilla(jm); // Paper - Adventure
- this.server.getPlayerList().broadcastAll(new ClientboundChatPacket(joinMessage, ChatType.SYSTEM, Util.NIL_UUID)); // Paper - Adventure
2021-06-11 14:02:28 +02:00
+ // Paper start - Removed sendAll for loop and broadcasted to console also
+ this.server.getPlayerList().broadcastMessage(joinMessage, ChatType.SYSTEM, Util.NIL_UUID); // Paper - Adventure
2021-06-11 14:02:28 +02:00
+ // Paper end
}
// CraftBukkit end