Merge pull request #2874 from drunderscore/feature/properly-seed-group-names-in-database

Seed initial group database with `default` and `guest` names from config
This commit is contained in:
Lucas Nicodemus 2025-03-10 00:59:49 +09:00 committed by GitHub
commit cd34ca8a4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ namespace TShockAPI.DB
if (creator.EnsureTableStructure(table))
{
// Add default groups if they don't exist
AddDefaultGroup("guest", "",
AddDefaultGroup(TShock.Config.Settings.DefaultGuestGroupName, "",
string.Join(",",
Permissions.canbuild,
Permissions.canregister,
@ -68,7 +68,7 @@ namespace TShockAPI.DB
Permissions.synclocalarea,
Permissions.sendemoji));
AddDefaultGroup("default", "guest",
AddDefaultGroup(TShock.Config.Settings.DefaultRegistrationGroupName, TShock.Config.Settings.DefaultGuestGroupName,
string.Join(",",
Permissions.warp,
Permissions.canchangepassword,
@ -82,7 +82,7 @@ namespace TShockAPI.DB
Permissions.magicconch,
Permissions.demonconch));
AddDefaultGroup("vip", "default",
AddDefaultGroup("vip", TShock.Config.Settings.DefaultRegistrationGroupName,
string.Join(",",
Permissions.reservedslot,
Permissions.renamenpc,