Added ChatColor helper to Group useful for output methods

This commit is contained in:
stevenh 2012-02-13 21:22:47 +00:00
parent c5497acae7
commit c7a9ee32cd

View file

@ -44,6 +44,11 @@ namespace TShockAPI
byte.TryParse(chatcolor.Split(',')[2], out B);
}
public string ChatColor()
{
return string.Format("{0}{1}{2}", R.ToString("X2"), G.ToString("X2"), B.ToString("X2"));
}
public virtual bool HasPermission(string permission)
{
var cur = this;