Added Config option for Rest spam.
This commit is contained in:
parent
545709e845
commit
811a98bb4c
4 changed files with 8 additions and 4 deletions
|
|
@ -192,7 +192,7 @@ namespace Rests
|
|||
}
|
||||
|
||||
object result = secureCmd.Execute(verbs, parms, tokenData);
|
||||
if (cmd.DoLog)
|
||||
if (cmd.DoLog && TShock.Config.LogRest)
|
||||
TShock.Utils.SendLogs(string.Format(
|
||||
"\"{0}\" requested REST endpoint: {1}", tokenData.Username, this.BuildRequestUri(cmd, verbs, parms, false)),
|
||||
Color.PaleVioletRed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue