mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-09 06:50:32 +08:00
976c6d425b
A recent commit has been made that caused patches to be out of order, rebuilding
22 lines
1.2 KiB
Diff
22 lines
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 48d4f8310d79d0eb78f4ace42c8778ee4addf7d0..599470c2158222be9202a96fc7d9bcf4b0ca0fe1 100644
|
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
|
@@ -288,7 +288,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().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
|
|
|