Broadcast join messages to console
This commit is contained in:
parent
1ef687a4a6
commit
d0a348b95e
1 changed files with 26 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
||||||
|
From 715b2b69a3b073eb5859ed7954e7c3cff55c661a 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 0e1703c9d..72ca7f706 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
||||||
|
@@ -199,9 +199,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));
|
||||||
|
- }
|
||||||
|
+ // Paper start - Removed sendAll for loop and broadcasted to console also
|
||||||
|
+ server.getPlayerList().sendMessage(CraftChatMessage.fromString(joinMessage));
|
||||||
|
+ // Paper end
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
Loading…
Reference in a new issue