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