Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 11:00:06 +01:00
22 Zeilen
1.2 KiB
Diff
22 Zeilen
1.2 KiB
Diff
|
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
|
||
|
index 984ac19dcab446531c816e365c7c149e2c49d567..e043722436492140162940770c22be47690fb47f 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 {
|
||
|
|
||
|
if (jm != null && !jm.equals(net.kyori.adventure.text.Component.empty())) { // Paper - Adventure
|
||
|
joinMessage = PaperAdventure.asVanilla(jm); // Paper - Adventure
|
||
|
- server.getPlayerList().broadcastAll(new ClientboundChatPacket(joinMessage, ChatType.SYSTEM, Util.NIL_UUID)); // Paper - Adventure
|
||
|
+ // Paper start - Removed sendAll for loop and broadcasted to console also
|
||
|
+ server.getPlayerList().sendMessage(joinMessage); // Paper - Adventure
|
||
|
+ // Paper end
|
||
|
}
|
||
|
// CraftBukkit end
|
||
|
|