Don't delete insert keybind
This commit is contained in:
@@ -89,9 +89,9 @@ function addPlayerKeyBind(client, keys, command, params, tempKey = false) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function removePlayerKeyBind(client, keyId) {
|
function removePlayerKeyBind(client, keyId) {
|
||||||
if(isPlayerLoggedIn(client)) {
|
//if(isPlayerLoggedIn(client)) {
|
||||||
quickDatabaseQuery(`DELETE FROM acct_hotkey WHERE acct_hotkey_acct = ${getPlayerData(client).accountData.databaseId} AND acct_hotkey_key = ${keyId}`);
|
// 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) {
|
//for(let i in getPlayerData(client).keyBinds) {
|
||||||
// if(getPlayerData(client).keyBinds[i].key == keyId) {
|
// if(getPlayerData(client).keyBinds[i].key == keyId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user