SignatureBeef / Terraria-s-Dedicated-Server-Mod

TDSM - .NET and Mono compatible Terraria Server Software Mod
MIT License
143 stars 49 forks source link

Can't add user to groups #213

Open Chupesmpx opened 8 years ago

Chupesmpx commented 8 years ago

Whenever i try to add a user to a group i get an error that user can only be in one group, but the usser isnt associated with any groups.

user addgroup Chuperto gen

10/1/2015 1:17:58 AM Command> Exception from command 10/1/2015 1:17:58 AM Command> System.NotSupportedException: A player can only be associated to one group, please assign a parent to the desired group at OTA.Data.Storage.AddUserToGroup(String username, String groupName) at TDSM.Core.Entry.UserPermission(ISender sender, ArgumentList args) at OTA.Command.CommandInfo.Run(ISender sender, ArgumentList args) at OTA.Command.CommandParser.ParseAndProcess(ISender sender, String line) at OTA.Command.CommandParser.ParseConsoleCommand(String line, ConsoleSender sender) at TDSM.Core.Entry.ListenForCommands()

user listgroups Chuperto There are no registered groups for user Chuperto

D1G1T4L3CH0 commented 8 years ago

Confirmed. Adding a new user and then immediately attempting to assign a group to the user results in the above exception.

EDIT: Actually I realized the build I had was old, but newer than B5. So I pulled the latest and tested again. It is working fine in the latest commit 9256765f7b6cd55f4fa5634cc80e7613cedeb788.

SignatureBeef commented 8 years ago

As per the new database, this might be fixed. This needs testing again.