Check command params, not temp command for keybind

This commit is contained in:
Vortrex
2022-08-01 11:35:13 -05:00
parent 98769435be
commit e6f5e31e98

View File

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