Skip to content

Commit

Permalink
update: wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Jul 25, 2024
1 parent 370ba65 commit 43eebc4
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/main/java/io/github/sakurawald/config/model/ConfigModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -725,22 +725,22 @@ public class Whitelist {
@Documentation("""
Background:
The vanilla minecraft use a command system called `brigadier`.
All the commands are `registered`, `parsed` and `executed` by `brigadier`.
In this system, all commands are build into a tree strucutre.
For example, like the command `/gamemode creative Steve` is composed by 3 `command node`:
- `literal command node` -> "gamemode"
- `argument command node` -> a valid gamemode
- `argument command node` -> a valid player
And the `command node path` stands the `tree node path`.
For `/gamemode creative Steve`, the path is ["gamemode", "gamemode", "target"].
You can query a command path using `/lp group default permission set fuji.permission...` way.
Also, each `command node` has its `requirement`, which is a condition to check if the `command user` can use the `command node`.
The vanilla minecraft use a command system called `brigadier`.
All the commands are `registered`, `parsed` and `executed` by `brigadier`.
In this system, all commands are build into a tree strucutre.
For example, like the command `/gamemode creative Steve` is composed by 3 `command node`:
- `literal command node` -> "gamemode"
- `argument command node` -> a valid gamemode
- `argument command node` -> a valid player
And the `command node path` stands the `tree node path`.
For `/gamemode creative Steve`, the path is ["gamemode", "gamemode", "target"].
You can query a command path using `/lp group default permission set fuji.permission...` way.
Also, each `command node` has its `requirement`, which is a condition to check if the `command user` can use the `command node`.
This module can `override` the `requirement` of a `command node` into a `permission` with prefix `fuji.permission.<command_node_path>`.
Expand Down

0 comments on commit 43eebc4

Please sign in to comment.