-Ingame log messages are no longer shown to the player who caused them.
-Changed ingame log message color to something more unique for better identification.
This commit is contained in:
parent
512ec24b57
commit
d1f1e422a0
3 changed files with 9 additions and 8 deletions
|
|
@ -282,7 +282,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (!cmd.CanRun(player))
|
||||
{
|
||||
TShock.Utils.SendLogs(string.Format("{0} tried to execute /{1}.", player.Name, cmdText), Color.Red);
|
||||
TShock.Utils.SendLogs(string.Format("{0} tried to execute /{1}.", player.Name, cmdText), Color.PaleVioletRed, player);
|
||||
player.SendErrorMessage("You do not have access to that command.");
|
||||
}
|
||||
else if (!cmd.AllowServer && !player.RealPlayer)
|
||||
|
|
@ -292,7 +292,7 @@ namespace TShockAPI
|
|||
else
|
||||
{
|
||||
if (cmd.DoLog)
|
||||
TShock.Utils.SendLogs(string.Format("{0} executed: /{1}.", player.Name, cmdText), Color.Red);
|
||||
TShock.Utils.SendLogs(string.Format("{0} executed: /{1}.", player.Name, cmdText), Color.PaleVioletRed, player);
|
||||
cmd.Run(cmdText, player, args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue