Skip to content

Commit 98f3a82

Browse files
committed
Update permissions, reset, reload, save, hide, reveal docs
1 parent 5056f67 commit 98f3a82

File tree

6 files changed

+164
-840
lines changed

6 files changed

+164
-840
lines changed

content/docs/commander/hide-reveal.mdx

Lines changed: 6 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ creating a cleaner experience for players while still allowing the commands to b
1414

1515
Usage: `/command hide <command>`
1616
Hides a command from tab completion.
17-
Supports wildcards for bulk operations.
1817

1918
**Examples:**
2019
```
@@ -32,10 +31,14 @@ Supports wildcards for bulk operations.
3231
/command hide <aqua>"*:*"</aqua>
3332
```
3433

34+
<Callout type="warning">
35+
Using `/command hide "*"` will hide literally **ALL** commands, including `/command` itself.
36+
Use `/command reveal "*"` to quickly restore all hidden commands.
37+
</Callout>
38+
3539
### Reveal a Command
3640
Usage: `/command reveal <command>`
3741
Makes a previously hidden command visible again in tab completions.
38-
Supports wildcards for bulk operations.
3942

4043
**Examples:**
4144
```
@@ -53,73 +56,7 @@ Supports wildcards for bulk operations.
5356
/command reveal <aqua>"*:*"</aqua>
5457
```
5558

56-
## Wildcard Support
57-
58-
Commander supports powerful wildcard patterns for bulk command operations:
59-
60-
### Wildcard Patterns
61-
62-
- `*` - Matches any command name
63-
- `*:*` - Matches any namespaced command (commands with colons)
64-
- `prefix:*` - Matches all commands with a specific namespace prefix
65-
- `*suffix` - Matches all commands ending with a specific suffix
66-
67-
68-
<Callout type="warning">
69-
Using `/command hide "*"` will hide literally **ALL** commands, including `/command` itself.
70-
Use `/command reveal "*"` to quickly restore all hidden commands.
71-
</Callout>
72-
73-
<Callout type="warning">
74-
Wildcard operations affect many commands at once.
75-
Test carefully and consider using `/command save` before bulk operations.
76-
</Callout>
77-
78-
### Common Wildcard Examples
79-
80-
```
81-
<gray># Hide ALL commands</gray>
82-
/command hide <aqua>"*"</aqua>
83-
84-
<gray># Hide all vanilla Minecraft commands</gray>
85-
/command hide <aqua>"minecraft:*"</aqua>
86-
87-
<gray># Hide all Bukkit/Spigot/Paper commands</gray>
88-
/command hide <aqua>"bukkit:*"</aqua>
89-
/command hide <aqua>"spigot:*"</aqua>
90-
/command hide <aqua>"paper:*"</aqua>
91-
92-
<gray># Hide all namespaced commands</gray>
93-
/command hide <aqua>"*:*"</aqua>
94-
95-
<gray># Hide all commands starting with "admin"</gray>
96-
/command hide <aqua>"admin*"</aqua>
97-
98-
<gray># Hide all commands ending with "list"</gray>
99-
/command hide <aqua>"*list"</aqua>
100-
```
101-
102-
### Wildcard Use Cases
103-
104-
#### Complete Command Cleanup
105-
```
106-
<gray># Hide all namespaced commands</gray>
107-
/command hide <aqua>"*:*"</aqua>
108-
109-
<gray># Then selectively reveal essential ones</gray>
110-
/command reveal <aqua>"essentials:*"</aqua>
111-
/command reveal <aqua>"luckperms:*"</aqua>
112-
```
113-
114-
## Behavior
115-
116-
### Hidden Commands
117-
118-
- Hidden commands are **still executable** by players who know the command
119-
- Hidden commands don't appear in tab completion
120-
- Hidden commands **still appear** in help menus (`/help`, `/?`)
121-
122-
### Bypass Permission
59+
## Bypass Permission
12360
Players with the `commander.bypass` permission can see all hidden commands.
12461

12562
<Callout type="info">

content/docs/commander/index.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Clean up your command list, enhance security, and customize your server's comman
3434
### Basic Usage
3535

3636
The main command of Commander is `/command` (or `/commandv` on the proxy),
37-
and requires the permission `commander.admin`:
37+
and requires the permission `commander.admin`:
3838

3939
```
4040
<gray># Hide commands from players</gray>
@@ -93,6 +93,23 @@ This allows you to:
9393
- Change existing permissions
9494
- Create world-specific or group-specific command access
9595

96+
## Wildcard Support
97+
98+
Commander supports powerful wildcard patterns for bulk operations on commands:
99+
100+
### Wildcard Patterns
101+
102+
- `*` - Matches any command name
103+
- `*:*` - Matches any namespaced command (commands with colons)
104+
- `prefix:*` - Matches all commands with a specific namespace prefix
105+
- `*suffix` - Matches all commands ending with a specific suffix
106+
107+
<Callout type="warning">
108+
Wildcard operations affect many commands at once.
109+
Test carefully and consider using `/command save` before bulk operations.
110+
_To restore from a saved configuration, use `/command reload`._
111+
</Callout>
112+
96113
## Configuration Files
97114

98115
Commander stores settings in three JSON files:

0 commit comments

Comments
 (0)