Updated the SetUserGroup in the commands.

This commit is contained in:
AkjaHAsLk1IALk0MasH 2023-05-14 12:17:47 +07:00
parent 1e037748c1
commit 230d9b0945
2 changed files with 7 additions and 2 deletions

View file

@ -555,7 +555,8 @@ namespace TShockAPI
{
try
{
TShock.UserAccounts.SetUserGroup(account, group);
TShock.UserAccounts.SetUserGroup(new TSRestPlayer(args.TokenData.Username, TShock.Groups.GetGroupByName(args.TokenData.UserGroupName)),
account, group);
response.Add("group-response", "Group updated successfully");
}
catch (Exception e)