Skip to content

Commit

Permalink
Fix doc commands
Browse files Browse the repository at this point in the history
  • Loading branch information
A5H73Y committed Sep 13, 2023
1 parent 6a90614 commit c4f6693
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docs/js/script.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const group = [];
group[1] = 'Basic'
group[2] = 'Create'
group[3] = 'Course'
group[4] = 'Player'
group[5] = 'Admin'
const groups = [];
groups[1] = 'Basic'
groups[2] = 'Create'
groups[3] = 'Course'
groups[4] = 'Player'
groups[5] = 'Admin'

function insertCommandsMarkup() {
fetch('files/parkourCommands.json')
Expand Down Expand Up @@ -41,7 +41,7 @@ function appendData(data, elementId, markupCallback) {
}

function createCommandSummary(command) {
const group = group[command.commandGroup];
const group = groups[command.commandGroup];
const styleClass = command.deprecated ? 'deprecated' : '';
let result = `<details>
<summary class="${styleClass}">
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/parkourCommands.json
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
"command": "setpropertyforeverysinglecourse",
"title": "Set Property for every Course",
"description": "Set the specified property for every single known Parkour Course, not providing a value will remove the property.",
"consoleSyntax": "pac setpropertyforeverysingleplayer (property) [value]",
"consoleSyntax": "pac setpropertyforeverysinglecourse (property) [value]",
"consoleOnly": true
},
{
Expand Down

0 comments on commit c4f6693

Please sign in to comment.