generated from AriasCreations/vsmodtemplate
Fix rtp so that admins can bypass max distance
This commit is contained in:
parent
29cf4e21b7
commit
1b6586c9e8
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ namespace AriasServerUtils
|
|||
if (args[0] is int ix)
|
||||
{
|
||||
if (ix == -1) ix = maxDistance;
|
||||
if (ix > maxDistance)
|
||||
if (ix > maxDistance && !(ServerUtilities.config.AdminsBypassRTPMaxDistance && isp.HasPrivilege(Privilege.controlserver)))
|
||||
{
|
||||
ServerUtilities.SendMessageTo(isp, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-capped", ix, maxDistance));
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"modid": "ariasserverutils",
|
||||
"name": "Aria's Server Utilities",
|
||||
"authors": ["zontreck"],
|
||||
"description": "A collection of server utilities\n\nBuild Date: 03-07-2025 @ 12:04 PM MST",
|
||||
"version": "1.0.6-dev.4",
|
||||
"description": "A collection of server utilities\n\nBuild Date: 03-07-2025 @ 12:09 PM MST",
|
||||
"version": "1.0.6-dev.5",
|
||||
"dependencies": {
|
||||
"game": ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue