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:
commit
cd34ca8a4c
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue