Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

Seed initial group database with `default` and `guest` names from config #2874

Open drunderscore opened 1 year ago

drunderscore commented 1 year ago

The GroupManager constructor ensures the structure of the GroupList table, and if the table is newly-created, then some initial data is seeded.

We previously used the names default to represent the group that accounts are defaultly registered to, and guest to represent players that have not logged in yet. We now instead refer to the group names specified by the config (DefaultRegistrationGroupName and DefaultGuestGroupName respectively)