Skip to content

Commit 8125857

Browse files
committed
fix: revert some unexpect changes
1 parent 28659e3 commit 8125857

18 files changed

+27
-27
lines changed

docs/en/create-commands/arguments/listed-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors:
99

1010
# Listed arguments
1111

12-
Arguments have a setting that determines whether they’re present in the [`CommandArguments args`](./command-arguments) that is populated when executing a command.
12+
Arguments have a setting that determines whether or not they are present in the [`CommandArguments args`](./command-arguments) that is populated when executing a command.
1313

1414
By default, the `LiteralArgument` has this setting set to `false`, hence the literal values are _not_ present in the [`CommandArguments args`](command-arguments).
1515

docs/en/create-commands/arguments/optional-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ A.combineWith(B)
142142
This does two things:
143143

144144
1. When checking optional argument constraints the argument `B` will be ignored so the `OptionalArgumentException` will not be thrown
145-
2. It allows you to define additional optional arguments afterward which can only be entered if argument `B` has been entered
145+
2. It allows you to define additional optional arguments afterwards which can only be entered if argument `B` has been entered
146146

147147
This is how you would add another optional `PlayerArgument` (here simplified to `C`):
148148

docs/en/create-commands/arguments/suggestions/async-suggestions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors:
1010

1111
# Asynchronous suggestions
1212

13-
In addition to normal suggestions, safely typed suggestions and suggestions with tooltips, the CommandAPI can support computing the list of suggestions to send to a player asynchronously. This allows you to perform suggestions independent of the main server thread, which is useful for slow operations, such as:
13+
In addition to normal suggestions, safely-typed suggestions and suggestions with tooltips, the CommandAPI can support computing the list of suggestions to send to a player asynchronously. This allows you to perform suggestions independent of the main server thread, which is useful for slow operations, such as:
1414

1515
- Retrieving suggestions from a remote database
1616
- Retrieving information from the web

docs/en/create-commands/arguments/suggestions/safe-suggestions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors:
99

1010
# Type-Safe suggestions
1111

12-
So far, we've covered how to replace suggestions using the `replaceSuggestions()` method. The issue with using strings for suggestion listings is that they’re prone to errors - it is possible to suggest something, which is not actually a valid argument, which makes that suggestion unusable. As a result, some arguments include the `replaceSafeSuggestions()`, which provides type-safety checks for argument suggestions, as well as automatic "Bukkit-to-suggestion" conversion.
12+
So far, we've covered how to replace suggestions using the `replaceSuggestions()` method. The issue with using strings for suggestion listings is that they’re prone to errors - it is possible to suggest something which is not actually a valid argument, which makes that suggestion unusable. As a result, some arguments include the `replaceSafeSuggestions()`, which provides type-safety checks for argument suggestions, as well as automatic "Bukkit-to-suggestion" conversion.
1313

1414
The whole point of the safe argument suggestions method is that parameters entered in this method are **guaranteed** to work.
1515

@@ -40,7 +40,7 @@ SafeSuggestions<T> tooltipsAsync(Function<SuggestionInfo, CompletableFuture<Tool
4040

4141
Not all arguments support safe suggestions. This is mostly due to implementation constraints or inadequate support by the Bukkit API.
4242

43-
The list of supported arguments is displayed in the following table. The parameter `T` (shown in the method the signatures above) are also provided for each argument. This parameter is the same as the cast argument described in [Argument Casting](../command-arguments#argument-casting), except for a few exceptions which are outlined in **bold**.
43+
The list of supported arguments are displayed in the following table. The parameter `T` (shown in the method signatures above) are also provided for each argument. This parameter is the same as the cast argument described in [Argument Casting](../command-arguments#argument-casting), except for a few exceptions which are outlined in **bold**.
4444

4545
| Argument | Class (T) |
4646
|----------------------------------------------------------------------------------------------:|:-----------------------------------------------|

docs/en/create-commands/arguments/suggestions/string-suggestions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ We can then use this to generate our suggested list of friends:
6767

6868
## Suggestions depending on previous arguments
6969

70-
The `strings(Function<SuggestionInfo, String[]>)` method can also suggest arguments based on the values of previously inputted arguments, using the `previousArgs()` method in `SuggestionInfo`. This `previousArgs()` method returns a **list of previous arguments** which are parsed exactly like any regular CommandAPI command argument.
70+
The `strings(Function<SuggestionInfo, String[]>)` method also has the capability to suggest arguments based on the values of previously inputted arguments, using the `previousArgs()` method in `SuggestionInfo`. This `previousArgs()` method returns a **list of previous arguments** which are parsed exactly like any regular CommandAPI command argument.
7171

7272
:::danger
7373

docs/en/create-commands/arguments/suggestions/suggestions-info.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CommandSender sender();
3030
CommandArguments previousArgs();
3131
```
3232

33-
`previousArgs()` represents the previously declared arguments, which are parsed and interpreted as if they were being used to execute the command. See [this example on the string argument suggestions page](./string-suggestions#suggestions-depending-on-previous-arguments) for an idea of how to use this field.
33+
`previousArgs()` represents the previously declared arguments, which are parsed and interpreted as if they were being used to execute the command. See [this example on the string argument suggestions page](./string-suggestions#suggestions-depending-on-previous-arguments) for an idea of how to utilize this field.
3434

3535
```java
3636
String currentInput();

docs/en/create-commands/arguments/suggestions/tooltips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ First, we'll declare our arguments. Here, we use a `LocationArgument` and use th
151151
<<< @/../reference-code/src/main/kotlin/createcommands/arguments/suggestions/Tooltips.kt#createArgumentsWithTooltipsAndSafeSuggestions
152152
:::
153153

154-
In the argument declaration, we've cast the command sender to a player. To ensure that the command sender is definitely a player, we'll use the `executesPlayer` command execution method in our command declaration:
154+
In the arguments declaration, we've casted the command sender to a player. To ensure that the command sender is definitely a player, we'll use the `executesPlayer` command execution method in our command declaration:
155155

156156
:::tabs
157157
===Java

docs/en/create-commands/arguments/types/primitive-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors:
77

88
# Primitive arguments
99

10-
Primitive arguments are arguments that represent Java primitive types such as `int`, `float`, `double`, `boolean` and `long`. These arguments are defined in their respective classes:
10+
Primitive arguments are arguments that represent Java primitive types, such as `int`, `float`, `double`, `boolean` and `long`. These arguments are defined in their respective classes:
1111

1212
| Primitive type | CommandAPI class |
1313
|----------------|-------------------|

docs/en/create-commands/executors/native-sender.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors:
88

99
# Native command senders
1010

11-
In a similar way that the `ProxiedCommandSender` is used to store information about two command senders: a caller (the one that wrote the command) and a callee (the one that ends up executing the command), the CommandAPI also has a special `NativeProxyCommandSender` class which is a more powerful representation of the `ProxiedCommandSender` class. In addition to inheriting all the methods from `ProxiedCommandSender`, this class also has the following two methods:
11+
In a similar way that the `ProxiedCommandSender` is used to store information about two command senders: a caller (the one that wrote the command) and a callee (the one that ends up executing the command), the CommandAPI also has a special `NativeProxyCommandSender` class which is a more powerful representation of the `ProxiedCommandSender` class. In addition to inheriting all of the methods from `ProxiedCommandSender`, this class also has the following two methods:
1212

1313
```java
1414
public World getWorld();

docs/en/create-commands/executors/normal-executors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ This saves having to use `instanceof` multiple times to check the type of the `C
102102

103103
::::
104104

105-
The different command sender priority is the following (from the highest priority to the lowest priority):
105+
The different command sender priority is the following (from highest priority to lowest priority):
106106

107107
```mermaid
108108
graph TD

0 commit comments

Comments
 (0)