From de1118ae1c820bf85be33515d0ee2a4680bf3ff5 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 28 Apr 2022 11:33:44 -0500 Subject: [PATCH] Move load keybind config to config.js --- scripts/server/keybind.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/server/keybind.js b/scripts/server/keybind.js index e7d33dd6..2e3993d9 100644 --- a/scripts/server/keybind.js +++ b/scripts/server/keybind.js @@ -10,7 +10,6 @@ function initKeyBindScript() { logToConsole(LOG_INFO, "[VRR.KeyBind]: Initializing key bind script ..."); - getGlobalConfig().keyBind = loadKeyBindConfiguration(); logToConsole(LOG_INFO, "[VRR.KeyBind]: Key bind script initialized!"); } @@ -195,13 +194,6 @@ function sendAccountKeyBindsToClient(client) { // =========================================================================== -function loadKeyBindConfiguration() { - let keyBindConfigFile = loadTextFile("config/keybind.json"); - return JSON.parse(keyBindConfigFile); -} - -// =========================================================================== - function showKeyBindListCommand(command, params, client) { let keybindList = getPlayerData(client).keyBinds.map(function(x) { return `{ALTCOLOUR}${toUpperCase(getKeyNameFromId(x.key))}: {MAINCOLOUR}${x.commandString}`; });