Skip to content

Commit 676f8a9

Browse files
committed
Add command permissions documentation for PerWorlds plugin
1 parent 0f110ae commit 676f8a9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Command Permissions
3+
description: A list of all PerWorlds commands and their required permissions.
4+
---
5+
6+
# Command Permissions
7+
8+
Below is a list of all PerWorlds commands and the permissions required to use them.
9+
Permissions are hierarchical: granting a parent permission (e.g. `perworlds.admin`) gives access to all child permissions.
10+
11+
| Command | Permission | Description |
12+
|--------------------------------------|---------------------------------------|--------------------------------------------------|
13+
| `/world group add` | `perworlds.command.group.add` | Add a world to a group |
14+
| `/world group create` | `perworlds.command.group.create` | Create a new world group |
15+
| `/world group delete` | `perworlds.command.group.delete` | Delete a world group |
16+
| `/world group list` | `perworlds.command.group.list` | List all world groups |
17+
| `/world group option` | `perworlds.command.group.option` | Configure group options |
18+
| `/world group remove` | `perworlds.command.group.remove` | Remove a world from a group |
19+
| `/world group spawn set` | `perworlds.command.group.spawn.set` | Set the spawn point for a group |
20+
| `/world group spawn unset` | `perworlds.command.group.spawn.unset` | Unset the spawn point for a group |
21+
| `/world group teleport` | `perworlds.command.group.teleport` | Teleport to a group's spawn point |
22+
23+
## Permission Hierarchy
24+
25+
- `perworlds.admin`
26+
- Grants all PerWorlds permissions.
27+
- `perworlds.commands.group`
28+
- Grants access to all group-related commands.
29+
- Each sub-permission (e.g. `perworlds.command.group.add`) grants access to the specific command.
30+
31+
32+
33+
## Permission packs
34+
35+
| Commands | Permission |
36+
| ---------------------------------------------------------------------- | -------------------- |
37+
| /world group \* | perworlds.admin<br/>perworlds.commands.group |

0 commit comments

Comments
 (0)