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
The merge still hasn't been finalized and most pages haven't been integrated into the main space, but I'd rather update it again than have dead links. (#496)
| MEMORY_MODULE_TYPE | MemoryKey | Keys for saving per-entity data |
92
-
93
-
Paper specifies many more argument types. For more information on them, see <Javadocname={"io.papermc.paper.command.brigadier.argument.ArgumentTypes"}>ArgumentTypes</Javadoc>
61
+
| Registry key name | Return datatype class | Description |
| MEMORY_MODULE_TYPE | MemoryKey | Keys for saving per-entity data |
92
+
93
+
Paper specifies many more argument types. For more information on them, see <Javadocname={"io.papermc.paper.command.brigadier.argument.ArgumentTypes"}>ArgumentTypes</Javadoc>.
94
94
95
95
### Custom types
96
96
97
-
Custom arguments can be created by implementing the <Javadocname={"io.papermc.paper.command.brigadier.argument.CustomArgumentType"}>CustomArgumentType</Javadoc>
98
-
interface.
97
+
Custom arguments can be created by implementing the <Javadocname={"io.papermc.paper.command.brigadier.argument.CustomArgumentType"}>CustomArgumentType</Javadoc>
98
+
interface.
99
99
100
100
Now, let's say that we want to implement a command which lets you order ice cream. For that,
101
101
we add an enum that specifies all available values for our custom type.
@@ -150,7 +150,7 @@ interface. This interface takes two type arguments: our custom enum, T, and a na
150
150
151
151
-`listSuggestions()` returns `CompletableFuture<Suggestions>` so that the client
152
152
can suggest all available options. We can even add tooltips to the suggestions to explain them in greater
153
-
detail.
153
+
detail.
154
154
155
155
We then need to register the command:
156
156
@@ -174,9 +174,9 @@ public void onEnable() {
174
174
}
175
175
```
176
176
177
-
Now that we have registered the command, we can execute it ingame:
177
+
Now that we have registered the command, we can execute it in-game:
178
178
179
179

180
-
Look, we can even see our tooltip and if we execute the command, we get the message we specified
180
+
Look, we can even see our tooltip and if we execute the command, we get the message we specified:
Copy file name to clipboardExpand all lines: docs/paper/dev/api/plugin-messaging.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
@@ -67,7 +67,7 @@ public final class PluginMessagingSample extends JavaPlugin implements Listener
67
67
:::tip
68
68
69
69
These channels rely on the Minecraft protocol, and are sent as a special type of packet called a
70
-
[Plugin Message](https://wiki.vg/Plugin_channels#Plugin_Messages). They piggyback on player connections, so if there is no
70
+
[Plugin Message](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Plugin_channels). They piggyback on player connections, so if there is no
71
71
player connected to the server, it will not be able to send or receive plugin messages.
Copy file name to clipboardExpand all lines: docs/versioned/paper/content/1.20/dev/api/plugin-messaging.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
@@ -67,7 +67,7 @@ public final class PluginMessagingSample extends JavaPlugin implements Listener
67
67
:::tip
68
68
69
69
These channels rely on the Minecraft protocol, and are sent as a special type of packet called a
70
-
[Plugin Message](https://wiki.vg/Plugin_channels#Plugin_Messages). They piggyback on player connections, so if there is no
70
+
[Plugin Message](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Plugin_channels). They piggyback on player connections, so if there is no
71
71
player connected to the server, it will not be able to send or receive plugin messages.
0 commit comments