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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
2021-02-22 08:03:03 +00:00
|
|
|
index ef7af4c6b9290ef18977e1aebd57621838685a5a..80f549ab92e244478aa12e7113e8f6bf28729f7d 100644
|
2021-02-21 19:45:33 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
2021-02-22 08:03:03 +00:00
|
|
|
@@ -214,7 +214,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
|
|
|
|
joinMessage = PaperAdventure.asVanilla(playerJoinEvent.joinMessage()); // 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
|
|
|
|
|