Load chat colours into groups.
This commit is contained in:
parent
ee58ccb496
commit
279b8ef9e2
1 changed files with 4 additions and 0 deletions
|
|
@ -186,6 +186,10 @@ namespace TShockAPI.DB
|
||||||
{
|
{
|
||||||
group.AddPermission(commands[i].Trim());
|
group.AddPermission(commands[i].Trim());
|
||||||
}
|
}
|
||||||
|
String[] chatcolour = reader.Get<String>("ChatColor").Split(',');
|
||||||
|
byte.TryParse(chatcolour[0], out group.R);
|
||||||
|
byte.TryParse(chatcolour[1], out group.G);
|
||||||
|
byte.TryParse(chatcolour[2], out group.B);
|
||||||
groups.Add(group);
|
groups.Add(group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue