Fixed REST API bug.

This commit is contained in:
MarioE 2013-01-22 19:12:20 -05:00
parent 12c44cc4bb
commit ae5b47a94e

View file

@ -738,7 +738,7 @@ namespace TShockAPI
public TSRestPlayer()
{
Group = new SuperAdminGroup();
AwaitingResponse = new Dictionary<string, Action<object>>();
AwaitingResponse = new Dictionary<string, Action<object>>();
}
public override void SendMessage(string msg)
@ -756,6 +756,26 @@ namespace TShockAPI
CommandReturn.Add(msg);
}
public override void SendInfoMessage(string msg)
{
SendMessage(msg, Color.Yellow);
}
public override void SendSuccessMessage(string msg)
{
SendMessage(msg, Color.Green);
}
public override void SendWarningMessage(string msg)
{
SendMessage(msg, Color.OrangeRed);
}
public override void SendErrorMessage(string msg)
{
SendMessage(msg, Color.Red);
}
public List<string> GetCommandOutput()
{
return CommandReturn;