Add deprecation warning to string AddGroup(name, perms)
Can't remove the other AddGroup string method without a deprecation window of 1 release for this stupid function too.
This commit is contained in:
parent
6ed91f12c8
commit
6c516e5f3d
1 changed files with 2 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ namespace TShockAPI.DB
|
|||
private void AddDefaultGroup(string name, string parent, string permissions)
|
||||
{
|
||||
if (!GroupExists(name))
|
||||
AddGroup(name, parent, permissions);
|
||||
AddGroup(name, parent, permissions, Group.defaultChatColor);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -197,6 +197,7 @@ namespace TShockAPI.DB
|
|||
return "";
|
||||
}
|
||||
|
||||
[Obsolete("Use AddGroup(name, parentname, permissions, chatcolor) instead.")]
|
||||
public String AddGroup(String name, String permissions)
|
||||
{
|
||||
return AddGroup(name, null, permissions, Group.defaultChatColor, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue