diff --git a/scripts/server/command.js b/scripts/server/command.js index da6d58bd..d9e87bdc 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -772,6 +772,19 @@ function listAllCommands() { // =========================================================================== +function getAllCommandsInSingleArray() { + let tempCommands = []; + for(let i in serverCommands) { + for(let j in serverCommands[i]) { + tempCommands.push(serverCommands[i][j]); + } + } + + return tempCommands; +} + +// =========================================================================== + function doesCommandExist(command) { if(getCommandData(command)) { return true;