2021-06-11 12:02:28 +00: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-07-07 06:52:40 +00:00
|
|
|
index 11079851f8a375d987933b53409b789030b3220d..c6d7d546ca79f71aadafe92d5d91f7ace8a07a0d 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
2021-07-07 06:52:40 +00:00
|
|
|
@@ -294,7 +294,9 @@ public abstract class PlayerList {
|
2021-06-11 12:02:28 +00:00
|
|
|
|
|
|
|
if (jm != null && !jm.equals(net.kyori.adventure.text.Component.empty())) { // Paper - Adventure
|
|
|
|
joinMessage = PaperAdventure.asVanilla(jm); // Paper - Adventure
|
2021-06-14 01:06:38 +00:00
|
|
|
- this.server.getPlayerList().broadcastAll(new ClientboundChatPacket(joinMessage, ChatType.SYSTEM, Util.NIL_UUID)); // Paper - Adventure
|
2021-06-11 12:02:28 +00:00
|
|
|
+ // Paper start - Removed sendAll for loop and broadcasted to console also
|
2021-06-14 01:06:38 +00:00
|
|
|
+ this.server.getPlayerList().broadcastMessage(joinMessage, ChatType.SYSTEM, Util.NIL_UUID); // Paper - Adventure
|
2021-06-11 12:02:28 +00:00
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|
|
|
|
|