Skip to content

Commit

Permalink
Update BranchNotes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
willkroboth committed Aug 22, 2022
1 parent 7ca320f commit 2c5fcf5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions BranchNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ commands:
executes:
- [Commands]
then:
- ArgumentTree1
- ArgumentTree2
- ...
ArgumentTree1:
ArgumentTree2:
...:
```
equivalent to this CommandTree:
```java
Expand All @@ -40,21 +40,21 @@ new CommandTree("commandName")
```
where Argument Trees are represented like this:
```yaml
- name: [name]
name:
type: [type]
argumentInfo:
"[depends on type, eg subtype: greedy for type: String]"
permission: [permission] (optional)
executes:
- [Commands]
then:
- ArgumentTree1
- ArgumentTree2
- ...
ArgumentTree1:
ArgumentTree2:
...:
```
and make this Java code:
```java
InternalArgument.convertArgumentInformation("[name]", "[type]", [argumentInfo])
InternalArgument.convertArgumentInformation("name", "[type]", [argumentInfo])
.withPermission("[permission]")
.executes((sender, args) -> {
// run [Commands]
Expand Down

0 comments on commit 2c5fcf5

Please sign in to comment.