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