Fixed REST API bug.
This commit is contained in:
parent
12c44cc4bb
commit
ae5b47a94e
1 changed files with 1044 additions and 1024 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue