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
|
2021-06-20 21:25:59 +02:00
|
|
|
index 449845bc547211fc0568871a60773c713a68a876..c14fba206e2f124cded3e00e2cb584e21a43971d 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-06-20 21:25:59 +02:00
|
|
|
@@ -292,7 +292,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
|
2021-06-14 03:06:38 +02:00
|
|
|
- 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
|
2021-06-14 03:06:38 +02:00
|
|
|
+ this.server.getPlayerList().broadcastMessage(joinMessage, ChatType.SYSTEM, Util.NIL_UUID); // Paper - Adventure
|
2021-06-11 14:02:28 +02:00
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|
|
|
|
|