From e6f5e31e98fb6ed45915edd9406f081fe9099293 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 1 Aug 2022 11:35:13 -0500 Subject: [PATCH] Check command params, not temp command for keybind --- scripts/server/keybind.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/keybind.js b/scripts/server/keybind.js index 6ca29542..6b0f6139 100644 --- a/scripts/server/keybind.js +++ b/scripts/server/keybind.js @@ -43,7 +43,7 @@ function initKeyBindScript() { // =========================================================================== function addKeyBindCommand(command, params, client) { - if (areParamsEmpty(tempCommand)) { + if (areParamsEmpty(command)) { messagePlayerSyntax(client, getCommandSyntaxText(command)); return false; } @@ -68,7 +68,7 @@ function addKeyBindCommand(command, params, client) { // =========================================================================== function removeKeyBindCommand(command, params, client) { - if (areParamsEmpty(tempCommand)) { + if (areParamsEmpty(command)) { messagePlayerSyntax(client, getCommandSyntaxText(command)); return false; }