Skip to content

Commit

Permalink
Fix RCon logging not working when Oxide ServerConsole is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBlue committed Nov 9, 2020
1 parent 087d85e commit 4aaea48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HurtworldExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ internal static void HandleLog(string message, string stackTrace, LogType type)
remoteType = "chat";
}

Interface.Oxide.ServerConsole.AddMessage(message, color);
if (Interface.Oxide.ServerConsole != null)
{
Interface.Oxide.ServerConsole.AddMessage(message, color);
}

Interface.Oxide.RemoteConsole.SendMessage(new RemoteMessage
{
Message = message,
Expand Down

0 comments on commit 4aaea48

Please sign in to comment.