From 2c5fcf5aac0a3c16654d708214c7c18f9fb72bd9 Mon Sep 17 00:00:00 2001 From: willkroboth <46540330+willkroboth@users.noreply.github.com> Date: Mon, 22 Aug 2022 07:43:52 -0400 Subject: [PATCH] Update BranchNotes.md --- BranchNotes.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/BranchNotes.md b/BranchNotes.md index 9d60358..f9b701f 100644 --- a/BranchNotes.md +++ b/BranchNotes.md @@ -14,9 +14,9 @@ commands: executes: - [Commands] then: - - ArgumentTree1 - - ArgumentTree2 - - ... + ArgumentTree1: + ArgumentTree2: + ...: ``` equivalent to this CommandTree: ```java @@ -40,7 +40,7 @@ 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]" @@ -48,13 +48,13 @@ where Argument Trees are represented like this: 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]