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-08-25 04:22:08 +02:00
|
|
|
index 7baad991689d9f9fd55176028569095a8daa94af..2b8ee11bee76671875b9ca2316181ccd2c0088e6 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-29 00:44:34 +02:00
|
|
|
@@ -211,9 +211,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
|
|
|
|
|