Added ChatColor helper to Group useful for output methods
This commit is contained in:
parent
c5497acae7
commit
c7a9ee32cd
1 changed files with 5 additions and 0 deletions
|
|
@ -44,6 +44,11 @@ namespace TShockAPI
|
||||||
byte.TryParse(chatcolor.Split(',')[2], out B);
|
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)
|
public virtual bool HasPermission(string permission)
|
||||||
{
|
{
|
||||||
var cur = this;
|
var cur = this;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue