Move load keybind config to config.js
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
function initKeyBindScript() {
|
function initKeyBindScript() {
|
||||||
logToConsole(LOG_INFO, "[VRR.KeyBind]: Initializing key bind script ...");
|
logToConsole(LOG_INFO, "[VRR.KeyBind]: Initializing key bind script ...");
|
||||||
getGlobalConfig().keyBind = loadKeyBindConfiguration();
|
|
||||||
logToConsole(LOG_INFO, "[VRR.KeyBind]: Key bind script initialized!");
|
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) {
|
function showKeyBindListCommand(command, params, client) {
|
||||||
let keybindList = getPlayerData(client).keyBinds.map(function(x) { return `{ALTCOLOUR}${toUpperCase(getKeyNameFromId(x.key))}: {MAINCOLOUR}${x.commandString}`; });
|
let keybindList = getPlayerData(client).keyBinds.map(function(x) { return `{ALTCOLOUR}${toUpperCase(getKeyNameFromId(x.key))}: {MAINCOLOUR}${x.commandString}`; });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user