You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/paper/dev/api/command-api/arguments/minecraft-arguments.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ toc_max_heading_level: 4
6
6
---
7
7
8
8
# Minecraft Arguments
9
-
The [Arguments and Literals](./arguments-and-literals) page covers the most used, native Brigadier arguments. But Minecraft (and Paper) defines a few more. These can be accessed
9
+
The [Arguments and Literals](../basics/arguments-and-literals) page covers the most used, native Brigadier arguments. But Minecraft (and Paper) defines a few more. These can be accessed
10
10
in a static context using the `ArgumentTypes` class. We will go over all of those in this section.
11
11
12
12
## Quick overview
@@ -16,7 +16,7 @@ A quick overview of all possible arguments is defined here:
Copy file name to clipboardExpand all lines: docs/paper/dev/api/command-api/misc/comparison-bukkit-brigadier.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ As you can see, you have to do a lot of manual checking in order to register a s
59
59
the Brigadier api do it?
60
60
61
61
### The new Paper way
62
-
First, we need to retrieve a `LiteralCommandNode<CommandSourceStack>`. That's a special Brigadier class that holds some sort of [command tree](./command-tree).
62
+
First, we need to retrieve a `LiteralCommandNode<CommandSourceStack>`. That's a special Brigadier class that holds some sort of [command tree](../basics/command-tree).
63
63
In our case, it is the root of our command. We can do that by running `Commands.literal(final String literal)`, which returns a
64
64
`LiteralArgumentBuilder<CommandSourceStack>`, where we can define some arguments and executors. Once we are done, we can call
65
65
`LiteralArgumentBuilder#build()` to retrieve our build `LiteralCommandNode`, which we can then register. That sounds complicated at first,
0 commit comments