2020-05-06 09:48:49 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2020-04-16 23:18:51 +00:00
|
|
|
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
|
2020-11-19 15:15:16 +00:00
|
|
|
index fbd0ecb7bee67bf5affb6be6a57a8a0a8e2686b3..ad6977db5aefb547a9f9db6258c3b18da8ca509f 100644
|
2020-04-16 23:18:51 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
2020-06-28 22:44:34 +00:00
|
|
|
@@ -211,9 +211,9 @@ public abstract class PlayerList {
|
2020-04-16 23:18:51 +00:00
|
|
|
joinMessage = playerJoinEvent.getJoinMessage();
|
|
|
|
|
|
|
|
if (joinMessage != null && joinMessage.length() > 0) {
|
|
|
|
- for (IChatBaseComponent line : org.bukkit.craftbukkit.util.CraftChatMessage.fromString(joinMessage)) {
|
2020-06-26 01:53:21 +00:00
|
|
|
- server.getPlayerList().sendAll(new PacketPlayOutChat(line, ChatMessageType.SYSTEM, SystemUtils.b));
|
2020-04-16 23:18:51 +00:00
|
|
|
- }
|
|
|
|
+ // Paper start - Removed sendAll for loop and broadcasted to console also
|
|
|
|
+ server.getPlayerList().sendMessage(CraftChatMessage.fromString(joinMessage));
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|
|
|
|
|