docs: fix typos (#344)
This commit is contained in:
parent
16ea203a79
commit
f0e9b80c77
2 changed files with 14 additions and 14 deletions
|
|
@ -1112,9 +1112,9 @@ public class Command<C> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make the current command be a proxy of the supplied command. This means that
|
* Make the current command be a proxy of the supplied command. This means that
|
||||||
* all of the proxied commands variable command arguments will be inserted into this
|
* all of the proxied command's variable command arguments will be inserted into this
|
||||||
* builder instance, in the order they are declared in the proxied command. Furthermore,
|
* builder instance, in the order they are declared in the proxied command. Furthermore,
|
||||||
* the proxied commands command handler will be showed by the command that is currently
|
* the proxied command's command handler will be shown by the command that is currently
|
||||||
* being built. If the current command builder does not have a permission node set, this
|
* being built. If the current command builder does not have a permission node set, this
|
||||||
* too will be copied.
|
* too will be copied.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -537,7 +537,7 @@ to the context.
|
||||||
* If the command is valid, it will be sent to the postprocessors.
|
* If the command is valid, it will be sent to the postprocessors.
|
||||||
5. The command postprocessors get to act on the command can alter the command context. they may now postpone command execution,
|
5. The command postprocessors get to act on the command can alter the command context. they may now postpone command execution,
|
||||||
such is the case with the command confirmation postprocessor.
|
such is the case with the command confirmation postprocessor.
|
||||||
* If a postprocessor causes an interrupt using `ConsumerService.interupt()` the command will not be executed.
|
* If a postprocessor causes an interrupt using `ConsumerService.interrupt()` the command will not be executed.
|
||||||
* If no postprocessor interrupts during the post-processing stage, the command will be sent to the executor.
|
* If no postprocessor interrupts during the post-processing stage, the command will be sent to the executor.
|
||||||
6. The command is executed using the command executor.
|
6. The command is executed using the command executor.
|
||||||
|
|
||||||
|
|
@ -597,16 +597,16 @@ original command. Essentially, they can be thought of as more powerful
|
||||||
command aliases.
|
command aliases.
|
||||||
|
|
||||||
It is easier understood by an example. Imagine you have a warp command in a game,
|
It is easier understood by an example. Imagine you have a warp command in a game,
|
||||||
let's call it `/game warp me <warp>` but you feel like it's a little too verbose for common use, you may then choose to introduce a
|
let's call it `/game warp me <warp>`, but you feel like it's a little too verbose for common use. You may then choose to introduce
|
||||||
`/warpme <warp>` command proxy that gets forwarded to the original command.
|
a `/warpme <warp>` command proxy that gets forwarded to the original command.
|
||||||
|
|
||||||
To create a command proxy you can use
|
To create a command proxy you can use
|
||||||
https://javadoc.io/doc/cloud.commandframework/cloud-core/latest/cloud/commandframework/Command.Builder.html#proxies(cloud.commandframework.Command)[Command.Builder#proxies(Command)].
|
https://javadoc.io/doc/cloud.commandframework/cloud-core/latest/cloud/commandframework/Command.Builder.html#proxies(cloud.commandframework.Command)[Command.Builder#proxies(Command)].
|
||||||
Please not the documentation of the method, which reads:
|
Please note the documentation of the method, which reads:
|
||||||
|
|
||||||
> Make the current command be a proxy of the supplied command.
|
> Make the current command be a proxy of the supplied command.
|
||||||
This means that all of the proxied commands variable command arguments will be inserted into this builder instance,
|
This means that all of the proxied command's variable command arguments will be inserted into this builder instance,
|
||||||
in the order they are declared in the proxied command. Furthermore, the proxied commands command handler will be showed by the
|
in the order they are declared in the proxied command. Furthermore, the proxied command's command handler will be shown by the
|
||||||
command that is currently being built. If the current command builder does not have a permission node set, this too will be copied.
|
command that is currently being built. If the current command builder does not have a permission node set, this too will be copied.
|
||||||
|
|
||||||
=== Permissions
|
=== Permissions
|
||||||
|
|
@ -675,7 +675,7 @@ until an additional command has been dispatched.
|
||||||
You first have to create a command confirmation manager:
|
You first have to create a command confirmation manager:
|
||||||
[source,java]
|
[source,java]
|
||||||
----
|
----
|
||||||
CommandConfirmationmanager<YourSender> confirmationManager = new CommandConfirmationManager<>(
|
CommandConfirmationManager<YourSender> confirmationManager = new CommandConfirmationManager<>(
|
||||||
30L, <1>
|
30L, <1>
|
||||||
TimeUnit.SECONDS,
|
TimeUnit.SECONDS,
|
||||||
context -> context.getCommandContext().getSender().sendMessage("Confirmation required!"), <2>
|
context -> context.getCommandContext().getSender().sendMessage("Confirmation required!"), <2>
|
||||||
|
|
@ -1194,7 +1194,7 @@ https://javadoc.io/doc/cloud.commandframework/cloud-core/latest/cloud/commandfra
|
||||||
|
|
||||||
https://github.com/Mojang/Brigadier[Brigadier]
|
https://github.com/Mojang/Brigadier[Brigadier]
|
||||||
is Mojang's command parser and dispatcher for Minecraft: Java Edition.
|
is Mojang's command parser and dispatcher for Minecraft: Java Edition.
|
||||||
It was released in version 1.13, and is available in notchain
|
It was released in version 1.13, and is available in Notchian
|
||||||
servers and clients released since. The most notable feature of Brigadier
|
servers and clients released since. The most notable feature of Brigadier
|
||||||
is the real-time argument parsing and feedback system, which allows you
|
is the real-time argument parsing and feedback system, which allows you
|
||||||
to see whether your argument is valid, while writing it. This feature
|
to see whether your argument is valid, while writing it. This feature
|
||||||
|
|
@ -1208,10 +1208,10 @@ https://github.com/lucko/commodore[commodore],
|
||||||
and Sponge v8+.
|
and Sponge v8+.
|
||||||
When using Paper/Spigot, this feature is opt-in (refer to the platform documentation for more information).
|
When using Paper/Spigot, this feature is opt-in (refer to the platform documentation for more information).
|
||||||
|
|
||||||
Cloud will try to hook into the Mojang (`net.minecraft.server`) serilizable types. In most cases this works when using the
|
Cloud will try to hook into the Mojang (`net.minecraft.server`) serializable
|
||||||
platform specific argument types, such as Location.
|
types. In most cases this works when using the platform specific argument types,
|
||||||
You can also create your own mappings. See the platform adapter JavaDoc for
|
such as Location. You can also create your own mappings. See the platform adapter
|
||||||
more information.
|
JavaDoc for more information.
|
||||||
|
|
||||||
=== Discord
|
=== Discord
|
||||||
TODO
|
TODO
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue