mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -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
|
||||
@ -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)]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user