Skip to content

Commit c62a2f0

Browse files
committed
fix: keep the same with original docs
1 parent 6ddaa70 commit c62a2f0

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Here, we don't actually want to cast the argument, so we use unsafe arguments to
238238

239239
## Access safe arguments
240240

241-
:::warning **Developer's Note:**
241+
:::danger **Developer's Note:**
242242

243243
The following methods can’t be used to access a value returned by a `CustomArgument` as its return type depends on the base argument for it.
244244

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

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

7070
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.
7171

72-
:::warning
72+
:::danger
7373

7474
The ability to use previously declared arguments _does not work via redirects_. This means that any command that comes before it that leads into a command that uses suggestions depending on previous arguments will not work. For example, if we had a command `/mycommand <arg1> <arg2> <arg3>` and ran it as normal, it would work as normal:
7575

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It consists of a gamemode, followed by an optional player argument. The list of
2626

2727
Unlike regular commands (as those implemented by Bukkit for example), these four options are "hardcoded" - they're not "suggestions". The user can _only_ enter one of these four examples, no other values are allowed.
2828

29-
:::warning Developer's Note:
29+
:::danger Developer's Note:
3030

3131
There is a simpler alternative to the `LiteralArgument` class! Instead of having to deal with arguments not being present in the array of arguments, consider using the much more intuitive `MultiLiteralArgument`, which is described in more detail [here](./multiliteral-arguments)!
3232

docs/en/create-commands/arguments/types/literal/multiliteral-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Now forget all of that. Multi literal arguments are the same as literal argument
1414

1515
The multi literal argument has all of the same benefits of a regular literal argument - they are hardcoded options that the user must enter – they don't allow other values.
1616

17-
:::warning Developer's Note:
17+
:::danger Developer's Note:
1818

1919
For 9.1.0, all previously existing `MultiLiteralArgument` constructors have been deprecated! They will be removed in a future version.
2020

docs/en/create-commands/arguments/types/misc/biome-arguments.md

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

1313
In Minecraft 1.16, they added the ability to refer to in-game biomes. The CommandAPI implements this using the `BiomeArgument`. As expected, this returns Bukkit's `Biome` enum when used.
1414

15-
:::warning
15+
:::danger
1616

1717
When using the `Biome` object, the CommandAPI will return `null` if the specified `Biome` could not be found, for example if a player submitted a biome from a client-side resourcepack. The CommandAPI does **not** return `Biome.CUSTOM` from the `BiomeArgument`.
1818

docs/en/create-commands/arguments/types/misc/particle-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ The particle argument requires additional data for a particle depending on what
207207

208208
Because certain particles (in the table above) require additional data, it is not recommended to spawn a particle without its corresponding data. This can result in particles not showing due to missing requirements.
209209

210-
::::warning Example - Show particles at a player's location (without data)
210+
::::danger Example - Show particles at a player's location (without data)
211211

212212
Say we wanted to have a command that displayed particles at a player's location. We will use the following command syntax:
213213

docs/en/create-commands/arguments/types/misc/sound-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ new SoundArgument("sound");
2222
new SoundArgument.NamespacedKey("sound");
2323
```
2424

25-
:::warning
25+
:::danger
2626

2727
When using the `Sound` object, the CommandAPI will return `null` if the specified `Sound` could not be found. For this reason, it's recommended to use the `NamespacedKey` object for optimal compatibility with client-side resourcepacks.
2828

2929
:::
3030

31-
::::tip Example - Playing sound to yourself
31+
::::tip Example Playing sound to yourself
3232

3333
Say we want a simple command that plays a specific sound at your location. To do this, we will make the following command:
3434

docs/en/create-commands/unregistration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Finally, `unregisterNamespaces` should be `false`, and since that's the default
207207

208208
With this code, `/gamemode` will execute as normal, but `/minecraft:gamemode` will give the unknown command message.
209209

210-
::::warning Developer's Note:
210+
::::danger Developer's Note:
211211

212212
Doing the opposite action here -- only unregistering `/gamemode` but keeping `/minecraft:gamemode` -- is not recommended. That would be the following code, where `commandName` is `"gamemode"` (or any command in the Vanilla CommandDispatcher), and `unregisterNamespaces` is `false`:
213213

docs/en/user-setup/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Controls whether the CommandAPI should use the latest NMS implementation for com
163163

164164
This setting can be used to run the CommandAPI on Minecraft versions higher than it can support. For example, if the CommandAPI supports Minecraft 1.18 and Minecraft 1.18.1 comes out, you can use this to enable support for 1.18.1 before an official CommandAPI release comes out that supports 1.18.1.
165165

166-
::: warning
166+
:::danger
167167

168168
This feature is very experimental and should only be used if you know what you’re doing. In almost every case, it is better to wait for an official CommandAPI release that supports the latest version of Minecraft. Using `use-latest-nms-version` is _not_ guaranteed to work and can cause unexpected side effects!
169169

@@ -187,7 +187,7 @@ Controls whether the CommandAPI should be more lenient when updating to a new Mi
187187

188188
Similar to the [`use-latest-nms-version`](#use-latest-nms-version) setting, this can allow the CommandAPI to run on a version higher than it officially supports. As an example, this setting can allow updating to 1.21.2 from 1.21.1 but doesn't allow updating to 1.22 from 1.21.2.
189189

190-
::: warning
190+
:::danger
191191

192192
Take the warning from the [`use-latest-nms-version`](#use-latest-nms-version) and apply it here too. This is _not_ guaranteed to work either and also may cause unexpected side effects.
193193

0 commit comments

Comments
 (0)