mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -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) {
|
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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user