Cleaned up around xp.yml. Fixed a typo, added an error to .xpshop if the feature is disabled.

This commit is contained in:
Kwoth
2022-07-27 03:56:10 +02:00
parent 25fce1bd75
commit 22bff7838a
6 changed files with 75 additions and 5 deletions

View File

@@ -33,6 +33,11 @@ public sealed class XpConfigService : ConfigServiceBase<XpConfig>
ConfigPrinters.ToString,
x => x > 0);
AddParsedProp("shop.is_enabled",
conf => conf.Shop.IsEnabled,
bool.TryParse,
ConfigPrinters.ToString);
Migrate();
}