/group add now uses non-deprecated method
This commit is contained in:
parent
417ffbc740
commit
e927b55fcb
1 changed files with 6 additions and 5 deletions
|
|
@ -2599,11 +2599,12 @@ namespace TShockAPI
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string response = TShock.Groups.AddGroup(groupName, permissions);
|
TShock.Groups.AddGroup(groupName, null, permissions, TShockAPI.Group.defaultChatColor);
|
||||||
if (response.Length > 0)
|
args.Player.SendSuccessMessage("The group was added successfully!");
|
||||||
{
|
}
|
||||||
args.Player.SendSuccessMessage(response);
|
catch (GroupExistsException e)
|
||||||
}
|
{
|
||||||
|
args.Player.SendErrorMessage("That group already exists!");
|
||||||
}
|
}
|
||||||
catch (GroupManagerException ex)
|
catch (GroupManagerException ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue