JSDoc
This commit is contained in:
@@ -81,6 +81,8 @@ function loadCommands() {
|
||||
new CommandData("chatfilter", toggleAccountProfanityFilterCommand, "", getStaffFlagValue("None"), true, false, "Turns on/off profanity filter"),
|
||||
new CommandData("chatemoji", toggleAccountReplaceEmojiCommand, "", getStaffFlagValue("None"), true, false, "Turns on/off automatic emoji"),
|
||||
new CommandData("emoji", toggleAccountReplaceEmojiCommand, "", getStaffFlagValue("None"), true, false, "Turns on/off automatic emoji"),
|
||||
//new CommandData("resetkeybinds", resetKeyBindsCommand, "", getStaffFlagValue("None"), true, false, "Resets all your keybinds to default"),
|
||||
//new CommandData("copykeybinds", copyKeyBindsToServerCommand, "<server id>", getStaffFlagValue("None"), true, false, "Copies all your current keybinds to another server"),
|
||||
//new CommandData("noblood", toggleAccountHideBloodCommand, "", getStaffFlagValue("None"), true, false, "Turns on/off blood in-game"),
|
||||
],
|
||||
ammunation: [],
|
||||
@@ -719,6 +721,9 @@ function addAllCommandHandlers() {
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
/**
|
||||
* @return {CommandData} command
|
||||
*/
|
||||
function getCommand(command) {
|
||||
let commandGroups = getCommands()
|
||||
for (let i in commandGroups) {
|
||||
@@ -735,6 +740,9 @@ function getCommand(command) {
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
/**
|
||||
* @return {CommandData} command
|
||||
*/
|
||||
function getCommandData(command) {
|
||||
return getCommand(command);
|
||||
}
|
||||
@@ -1029,10 +1037,10 @@ function cacheAllCommandsAliases() {
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function getCommandAliasesNames(command) {
|
||||
function getCommandAliasesNames(commandData) {
|
||||
let commandAliases = [];
|
||||
for (let i in command.aliases) {
|
||||
commandAliases.push(command.aliases[i].name);
|
||||
for (let i in commandData.aliases) {
|
||||
commandAliases.push(commandData.aliases[i].name);
|
||||
}
|
||||
|
||||
return commandAliases;
|
||||
|
||||
Reference in New Issue
Block a user