From 27eed10f2124da803444e714075789b30d29c9d1 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 21 Mar 2020 13:47:18 +1100 Subject: [PATCH] Fix /hug and /high5 not working from console (thanks scav) --- MCGalaxy/Chat/Chat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Chat/Chat.cs b/MCGalaxy/Chat/Chat.cs index d94176140..bf47e3ec6 100644 --- a/MCGalaxy/Chat/Chat.cs +++ b/MCGalaxy/Chat/Chat.cs @@ -148,7 +148,7 @@ namespace MCGalaxy { public static void MessageFrom(Player source, string msg, ChatMessageFilter filter = null, bool irc = false) { - if (source.level.SeesServerWideChat) { + if (source.level == null || source.level.SeesServerWideChat) { MessageFrom(ChatScope.Global, source, msg, null, filter, irc); } else { string prefix = Server.Config.ServerWideChat ? "" : "";