Fix /hug and /high5 not working from console (thanks scav)

This commit is contained in:
UnknownShadow200 2020-03-21 13:47:18 +11:00
parent ece35367d4
commit 27eed10f21

View File

@ -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 ? "<Local>" : "";