From 8f5b1e185ea7cefeeccbf66e1fb0046c78250e8d Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 21 Dec 2020 22:51:49 -0600 Subject: [PATCH] Add bindkey/unbindkey cmds --- scripts/server/command.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/server/command.js b/scripts/server/command.js index cf476211..408da472 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -150,6 +150,11 @@ function loadCommandData() { // Bus/Garbage commandData("startroute", jobStartRouteCommand, "", getStaffFlagValue("none"), true, false), ], + keybind: [ + commandData("bindkey", addKeyBindCommand, " [params]", getStaffFlagValue("none"), true, false), + commandData("unbindkey", removeKeyBindCommand, "", getStaffFlagValue("none"), true, false), + //commandData("keybinds", showKeyBindCommands, "", getStaffFlagValue("none"), true, false), + ], locale: [], messaging: [], misc: [ @@ -410,7 +415,7 @@ addCommandHandler("cmd", function(command, params, client) { let newCommand = splitParams[0]; let newParams = splitParams.slice(1).join(" "); - onPlayerCommand(newCommand, newParams, client); + getCommand(newCommand).handlerFunction(newCommand, newParams, client); }); // --------------------------------------------------------------------------- \ No newline at end of file