Changed the colors a bit
I'm aware that there's the top half of the file to do :/
This commit is contained in:
parent
7f558c395a
commit
a1dbd06f8a
2 changed files with 4 additions and 4 deletions
|
|
@ -216,14 +216,14 @@ namespace TShockAPI
|
||||||
|
|
||||||
if (cmd == null)
|
if (cmd == null)
|
||||||
{
|
{
|
||||||
player.SendMessage("Invalid Command Entered. Type /help for a list of valid Commands.", Color.Red);
|
player.SendErrorMessage("Invalid Command Entered. Type /help for a list of valid Commands.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cmd.CanRun(player))
|
if (!cmd.CanRun(player))
|
||||||
{
|
{
|
||||||
TShock.Utils.SendLogs(string.Format("{0} tried to execute {1}", player.Name, cmd.Name), Color.Red);
|
TShock.Utils.SendLogs(string.Format("{0} tried to execute {1}", player.Name, cmd.Name), Color.Red);
|
||||||
player.SendMessage("You do not have access to that command.", Color.Red);
|
player.SendErrorMessage("You do not have access to that command.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -409,7 +409,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
public virtual void SendInfoMessage(string msg)
|
public virtual void SendInfoMessage(string msg)
|
||||||
{
|
{
|
||||||
SendMessage(msg, Color.Indigo);
|
SendMessage(msg, Color.Yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void SendSuccessMessage(string msg)
|
public virtual void SendSuccessMessage(string msg)
|
||||||
|
|
@ -419,7 +419,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
public virtual void SendWarningMessage(string msg)
|
public virtual void SendWarningMessage(string msg)
|
||||||
{
|
{
|
||||||
SendMessage(msg, Color.Yellow);
|
SendMessage(msg, Color.OrangeRed);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void SendErrorMessage(string msg)
|
public virtual void SendErrorMessage(string msg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue