Allow admins to bypass the max rtp distance

This commit is contained in:
zontreck 2025-03-07 11:53:57 -07:00
parent 700de94ffe
commit c5c605d057
4 changed files with 25 additions and 4 deletions

View file

@ -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();
}
}
}