24 lines
1.2 KiB
Diff
24 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/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
|
index 2602c326cf8d3516162fcc08f0f40ba4ee5f6a16..00071913c0bb4deec7501a54818a2a1d6febc769 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
|
@@ -211,9 +211,9 @@ public abstract class PlayerList {
|
|
joinMessage = playerJoinEvent.getJoinMessage();
|
|
|
|
if (joinMessage != null && joinMessage.length() > 0) {
|
|
- for (IChatBaseComponent line : org.bukkit.craftbukkit.util.CraftChatMessage.fromString(joinMessage)) {
|
|
- server.getPlayerList().sendAll(new PacketPlayOutChat(line, ChatMessageType.SYSTEM, SystemUtils.b));
|
|
- }
|
|
+ // Paper start - Removed sendAll for loop and broadcasted to console also
|
|
+ server.getPlayerList().sendMessage(CraftChatMessage.fromString(joinMessage));
|
|
+ // Paper end
|
|
}
|
|
// CraftBukkit end
|
|
|