Skip to content

Commit c4f6693

Browse files
committed
Fix doc commands
1 parent 6a90614 commit c4f6693

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/js/script.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const group = [];
2-
group[1] = 'Basic'
3-
group[2] = 'Create'
4-
group[3] = 'Course'
5-
group[4] = 'Player'
6-
group[5] = 'Admin'
1+
const groups = [];
2+
groups[1] = 'Basic'
3+
groups[2] = 'Create'
4+
groups[3] = 'Course'
5+
groups[4] = 'Player'
6+
groups[5] = 'Admin'
77

88
function insertCommandsMarkup() {
99
fetch('files/parkourCommands.json')
@@ -41,7 +41,7 @@ function appendData(data, elementId, markupCallback) {
4141
}
4242

4343
function createCommandSummary(command) {
44-
const group = group[command.commandGroup];
44+
const group = groups[command.commandGroup];
4545
const styleClass = command.deprecated ? 'deprecated' : '';
4646
let result = `<details>
4747
<summary class="${styleClass}">

src/main/resources/parkourCommands.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@
534534
"command": "setpropertyforeverysinglecourse",
535535
"title": "Set Property for every Course",
536536
"description": "Set the specified property for every single known Parkour Course, not providing a value will remove the property.",
537-
"consoleSyntax": "pac setpropertyforeverysingleplayer (property) [value]",
537+
"consoleSyntax": "pac setpropertyforeverysinglecourse (property) [value]",
538538
"consoleOnly": true
539539
},
540540
{

0 commit comments

Comments
 (0)