generated from AriasCreations/vsmodtemplate
Begin to add the admin bypass cooldown option
This commit is contained in:
parent
f86030dc61
commit
cd00e620c3
4 changed files with 24 additions and 3 deletions
|
@ -555,5 +555,17 @@ namespace AriasServerUtils
|
|||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:config-value-reset"));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleUpdateASUBypassCD(TextCommandCallingArgs args)
|
||||
{
|
||||
if (args[0] is bool bypass)
|
||||
{
|
||||
// Update the bypass
|
||||
ServerUtilities.config.AdminsBypassCooldowns = bypass;
|
||||
ServerUtilities.MarkDirty();
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
}
|
||||
else return TextCommandResult.Success();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue