generated from AriasCreations/vsmodtemplate
Allow admins to bypass the max rtp distance
This commit is contained in:
parent
700de94ffe
commit
c5c605d057
4 changed files with 25 additions and 4 deletions
|
@ -567,5 +567,17 @@ namespace AriasServerUtils
|
|||
}
|
||||
else return TextCommandResult.Success();
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleUpdateASUBypassRTPMaxDist(TextCommandCallingArgs args)
|
||||
{
|
||||
if (args[0] is bool bypass)
|
||||
{
|
||||
// Update the flag
|
||||
ServerUtilities.config.AdminsBypassRTPMaxDistance = 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