diff --git a/MCGalaxy/Commands/Information/CmdOpStats.cs b/MCGalaxy/Commands/Information/CmdOpStats.cs index 89dd03c49..33a75ad6b 100644 --- a/MCGalaxy/Commands/Information/CmdOpStats.cs +++ b/MCGalaxy/Commands/Information/CmdOpStats.cs @@ -106,7 +106,7 @@ namespace MCGalaxy.Commands.Info { } public override void Help(Player p) { - Player.Message(p, "%T/opstats [player] today/yesterday/thismonth]/lastmonth/all"); + Player.Message(p, "%T/opstats [player] today/yesterday/thismonth/lastmonth/all"); Player.Message(p, "%HDisplays information about operator command usage."); } } diff --git a/MCGalaxy/Server/Server.cs b/MCGalaxy/Server/Server.cs index 6815ebf57..1bab2a190 100644 --- a/MCGalaxy/Server/Server.cs +++ b/MCGalaxy/Server/Server.cs @@ -31,9 +31,7 @@ using MCGalaxy.Util; namespace MCGalaxy { public sealed partial class Server { - public Server() { - Server.s = this; - } + public Server() { Server.s = this; } //True = cancel event //Fale = dont cacnel event @@ -47,6 +45,12 @@ namespace MCGalaxy { [Obsolete("Use Logger.Log(LogType, String)")] public void Log(string message) { Logger.Log(LogType.SystemActivity, message); } + + [Obsolete("Use Logger.Log(LogType, String)")] + public void Log(string message, bool systemMsg = false) { + LogType type = systemMsg ? LogType.BackgroundActivity : LogType.SystemActivity; + Logger.Log(type, message); + } static void CheckFile(string file) { if (File.Exists(file)) return; @@ -56,9 +60,9 @@ namespace MCGalaxy { using (WebClient client = HttpUtil.CreateWebClient()) { client.DownloadFile(Updater.BaseURL + file + "?raw=true", file); } - if (File.Exists(file)) { - Logger.Log(LogType.SystemActivity, file + " download succesful!"); - } + if (File.Exists(file)) { + Logger.Log(LogType.SystemActivity, file + " download succesful!"); + } } catch { Logger.Log(LogType.Warning, "Downloading {0} failed, please try again later", file); } @@ -262,7 +266,7 @@ namespace MCGalaxy { } static void RandomMessage(SchedulerTask task) { - if (PlayerInfo.Online.Count > 0 && messages.Count > 0) { + if (PlayerInfo.Online.Count > 0 && messages.Count > 0) { Chat.MessageGlobal(messages[new Random().Next(0, messages.Count)]); } }