Add all command array util

This commit is contained in:
Vortrex
2022-03-17 08:10:17 -05:00
parent 406334555d
commit a33c44544f

View File

@@ -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;