generated from AriasCreations/vsmodtemplate
Release v1.0.1
This commit is contained in:
parent
70664e91c4
commit
e561ced568
3 changed files with 35 additions and 18 deletions
|
@ -185,25 +185,31 @@ namespace AriasServerUtils
|
|||
return TextCommandResult.Success();
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleUpdateASU(TextCommandCallingArgs args)
|
||||
internal static TextCommandResult HandleUpdateASUBypass(TextCommandCallingArgs args)
|
||||
{
|
||||
|
||||
if (args[0] is int maxHomes)
|
||||
if (args[1] is bool bypass)
|
||||
{
|
||||
|
||||
ServerUtilities.config.MaxHomes = maxHomes;
|
||||
if (args[1] is bool bypass)
|
||||
{
|
||||
ServerUtilities.config.AdminsBypassMaxHomes = bypass;
|
||||
}
|
||||
|
||||
ServerUtilities.config.AdminsBypassMaxHomes = bypass;
|
||||
ServerUtilities.MarkDirty();
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
|
||||
}
|
||||
|
||||
return TextCommandResult.Success();
|
||||
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleUpdateASUMaxHomes(TextCommandCallingArgs args)
|
||||
{
|
||||
if (args[0] is int maxHomes)
|
||||
{
|
||||
ServerUtilities.config.MaxHomes = maxHomes;
|
||||
ServerUtilities.MarkDirty();
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
}
|
||||
|
||||
return TextCommandResult.Success();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue