Add back in obsolete Log(string, bool) to avoid breaking backwards compatibility

This commit is contained in:
UnknownShadow200 2017-07-02 23:12:09 +10:00
parent 949cf78f1c
commit 321e1da599
2 changed files with 12 additions and 8 deletions

View File

@ -106,7 +106,7 @@ namespace MCGalaxy.Commands.Info {
} }
public override void Help(Player p) { 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."); Player.Message(p, "%HDisplays information about operator command usage.");
} }
} }

View File

@ -31,9 +31,7 @@ using MCGalaxy.Util;
namespace MCGalaxy { namespace MCGalaxy {
public sealed partial class Server { public sealed partial class Server {
public Server() { public Server() { Server.s = this; }
Server.s = this;
}
//True = cancel event //True = cancel event
//Fale = dont cacnel event //Fale = dont cacnel event
@ -48,6 +46,12 @@ namespace MCGalaxy {
[Obsolete("Use Logger.Log(LogType, String)")] [Obsolete("Use Logger.Log(LogType, String)")]
public void Log(string message) { Logger.Log(LogType.SystemActivity, message); } 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) { static void CheckFile(string file) {
if (File.Exists(file)) return; if (File.Exists(file)) return;