mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Add back in obsolete Log(string, bool) to avoid breaking backwards compatibility
This commit is contained in:
parent
949cf78f1c
commit
321e1da599
@ -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.");
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
@ -48,6 +46,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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user