2021-02-21 19:45:33 +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
|
|
|
|
|
|
|
|
|
2021-03-16 07:19:45 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
|
|
index 53261da8b7f0c7a59cacc48636d6c9d707ce372e..d06d31207ce724a6318a87a37d26a7e30372aa22 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
|
|
@@ -284,7 +284,9 @@ public abstract class PlayerList {
|
2021-02-21 19:45:33 +00:00
|
|
|
|
2021-02-22 08:03:03 +00:00
|
|
|
if (jm != null && !jm.equals(net.kyori.adventure.text.Component.empty())) { // Paper - Adventure
|
2021-03-08 20:36:03 +00:00
|
|
|
joinMessage = PaperAdventure.asVanilla(jm); // Paper - Adventure
|
2021-02-21 19:45:33 +00:00
|
|
|
- server.getPlayerList().sendAll(new PacketPlayOutChat(joinMessage, ChatMessageType.SYSTEM, SystemUtils.b)); // Paper - Adventure
|
|
|
|
+ // Paper start - Removed sendAll for loop and broadcasted to console also
|
|
|
|
+ server.getPlayerList().sendMessage(joinMessage); // Paper - Adventure
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|
|
|
|
|