From e927b55fcb5bb99a0ab8326f1c3f7df640d8c629 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 12 Apr 2015 23:39:26 -0600 Subject: [PATCH] /group add now uses non-deprecated method --- TShockAPI/Commands.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index a31c6d11..020ad88f 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -2599,11 +2599,12 @@ namespace TShockAPI try { - string response = TShock.Groups.AddGroup(groupName, permissions); - if (response.Length > 0) - { - args.Player.SendSuccessMessage(response); - } + TShock.Groups.AddGroup(groupName, null, permissions, TShockAPI.Group.defaultChatColor); + args.Player.SendSuccessMessage("The group was added successfully!"); + } + catch (GroupExistsException e) + { + args.Player.SendErrorMessage("That group already exists!"); } catch (GroupManagerException ex) {