From 48acaae1056999efc075a66b06a4d04966922cf4 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 21 Mar 2022 23:21:31 -0500 Subject: [PATCH] Fix for a few staff cmds using wrong arg --- scripts/server/staff.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/server/staff.js b/scripts/server/staff.js index 9cef4a76..e25cd017 100644 --- a/scripts/server/staff.js +++ b/scripts/server/staff.js @@ -1033,7 +1033,7 @@ function setPlayerHealthCommand(command, params, client) { //} let splitParams = params.split(" "); - let targetClient = getParam(params, " ", 1); + let targetClient = getPlayerFromParams(getParam(params, " ", 1)); let health = getParam(params, " ", 2); if(!targetClient) { @@ -1054,7 +1054,7 @@ function setPlayerArmourCommand(command, params, client) { return false; } - let targetClient = getParam(params, " ", 1); + let targetClient = getPlayerFromParams(getParam(params, " ", 1)); let armour = getParam(params, " ", 2); if(!targetClient) { @@ -1075,7 +1075,7 @@ function setPlayerInfiniteRunCommand(command, params, client) { return false; } - let targetClient = getParam(params, " ", 1); + let targetClient = getPlayerFromParams(getParam(params, " ", 1)); let state = getParam(params, " ", 2) || 0; if(!targetClient) {