From e11b465440c81a522281a9bfd207bf92c0951f74 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 20 May 2022 17:34:59 -0500 Subject: [PATCH] Don't delete insert keybind --- scripts/server/keybind.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/server/keybind.js b/scripts/server/keybind.js index c2a37cfd..3dfaf3ec 100644 --- a/scripts/server/keybind.js +++ b/scripts/server/keybind.js @@ -89,9 +89,9 @@ function addPlayerKeyBind(client, keys, command, params, tempKey = false) { // =========================================================================== function removePlayerKeyBind(client, keyId) { - if(isPlayerLoggedIn(client)) { - quickDatabaseQuery(`DELETE FROM acct_hotkey WHERE acct_hotkey_acct = ${getPlayerData(client).accountData.databaseId} AND acct_hotkey_key = ${keyId}`); - } + //if(isPlayerLoggedIn(client)) { + // quickDatabaseQuery(`DELETE FROM acct_hotkey WHERE acct_hotkey_acct = ${getPlayerData(client).accountData.databaseId} AND acct_hotkey_key = ${keyId}`); + //} //for(let i in getPlayerData(client).keyBinds) { // if(getPlayerData(client).keyBinds[i].key == keyId) {