2021-02-21 20:45:33 +01: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-03-09 00:12:31 +01:00
|
|
|
index c7d44b1242943f2d0a78614c7bae4840fb41e8f4..34246ba0f8a50f732f2ff863f8a824f8573fee83 100644
|
2021-02-21 20:45:33 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
2021-03-09 00:12:31 +01:00
|
|
|
@@ -209,7 +209,9 @@ public abstract class PlayerList {
|
2021-02-21 20:45:33 +01:00
|
|
|
|
2021-02-22 09:03:03 +01:00
|
|
|
if (jm != null && !jm.equals(net.kyori.adventure.text.Component.empty())) { // Paper - Adventure
|
2021-03-08 21:36:03 +01:00
|
|
|
joinMessage = PaperAdventure.asVanilla(jm); // Paper - Adventure
|
2021-02-21 20:45:33 +01: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
|
|
|
|
|