/v2/groups/create uses non-deprecated AddGroup call

This should have no functional change that's negative. The previous
method only returned errors based on exceptions, so switching does
nothing except remove deprecated code.
This commit is contained in:
Lucas Nicodemus 2015-04-13 00:04:59 -06:00
parent 1b835c0597
commit 6fe33b5c43

View file

@ -980,7 +980,7 @@ namespace TShockAPI
return RestMissingParam("group");
try
{
TShock.Groups.AddGroup(name, args.Parameters["parent"], args.Parameters["permissions"], args.Parameters["chatcolor"], true);
TShock.Groups.AddGroup(name, args.Parameters["parent"], args.Parameters["permissions"], args.Parameters["chatcolor"]);
}
catch (Exception e)
{