Skip to content

Commit f4d6b21

Browse files
committed
feat: fix old links
1 parent b161059 commit f4d6b21

File tree

6 files changed

+112
-112
lines changed

6 files changed

+112
-112
lines changed

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

Lines changed: 65 additions & 65 deletions
Large diffs are not rendered by default.

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

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -42,41 +42,41 @@ Not all arguments support safe suggestions. This is mostly due to implementation
4242

4343
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**.
4444

45-
| Argument | Class (T) |
46-
|---------------------------------------------------------------------------------:|:-----------------------------------------------|
47-
| [`AdvancementArgument`](./advancementargument.md) | `org.bukkit.advancement.Advancement` |
48-
| [`AxisArgument`](./argument_axis.md) | `java.util.EnumSet<org.bukkit.Axis>` |
49-
| [`BiomeArgument`](./argument_biome.md) | `org.bukkit.block.Biome` |
50-
| [`BooleanArgument`](./argument_primitives.md#boolean-arguments) | **`Boolean`** |
51-
| [`ChatColorArgument`](./argument_chats.md#chat-color-argument) | `org.bukkit.ChatColor` |
52-
| [`DoubleArgument`](./argument_primitives.md#numerical-arguments) | **`Double`** |
53-
| [`EnchantmentArgument`](./argument_enchantment.md) | `org.bukkit.enchantments.Enchantment` |
54-
| [`EntityTypeArgument`](./argument_entities.md#entity-type-argument) | `org.bukkit.entity.EntityType` |
55-
| [`FloatArgument`](./argument_primitives.md#numerical-arguments) | **`Float`** |
56-
| [`FloatRangeArgument`](./argument_range.md#the-integerrange--floatrange-class) | `dev.jorel.commandapi.wrappers.FloatRange` |
57-
| [`FunctionArgument`](./functionwrapper.md) | **`org.bukkit.NamespacedKey`** |
58-
| [`GreedyStringArgument`](./argument_strings.md#greedy-string-argument) | `String` |
59-
| [`IntegerArgument`](./argument_primitives.md#numerical-arguments) | **`Integer`** |
60-
| [`IntegerRangeArgument`](./argument_range.md#the-integerrange--floatrange-class) | `dev.jorel.commandapi.wrappers.IntegerRange` |
61-
| [`ItemStackArgument`](./argument_itemstack.md) | `org.bukkit.inventory.ItemStack` |
62-
| [`Location2DArgument`](./argument_locations.md#location-2d-space) | `dev.jorel.commandapi.wrappers.Location2D` |
63-
| [`LocationArgument`](./argument_locations.md#location-3d-space) | `org.bukkit.Location` |
64-
| [`LongArgument`](./argument_primitives.md#numerical-arguments) | **`Long`** |
65-
| [`LootTableArgument`](./argument_loottable.md) | `org.bukkit.loot.LootTable` |
66-
| [`MathOperationArgument`](./argument_mathoperation.md) | `dev.jorel.commandapi.wrappers.MathOperation` |
67-
| [`NBTCompoundArgument`](./argument_nbt.md) | `de.tr7zw.nbtapi.NBTContainer` |
68-
| [`ObjectiveArgument`](./argument_objectives.md#objective-argument) | **`org.bukkit.scoreboard.Objective`** |
69-
| [`OfflinePlayerArgument`](./argument_entities.md#player-argument) | `org.bukkit.OfflinePlayer` |
70-
| [`ParticleArgument`](./argument_particles.md) | `org.bukkit.Particle` |
71-
| [`PlayerArgument`](./argument_entities.md#player-argument) | `org.bukkit.entity.Player` |
72-
| [`PotionEffectArgument`](./argument_potion.md) | `org.bukkit.potion.PotionEffectType` |
73-
| [`RecipeArgument`](./argument_recipe.md) | `org.bukkit.inventory.Recipe` |
74-
| [`RotationArgument`](./argument_rotation.md) | `dev.jorel.commandapi.wrappers.Rotation` |
75-
| [`ScoreboardSlotArgument`](./argument_scoreboards.md#scoreboard-slot-argument) | `dev.jorel.commandapi.wrappers.ScoreboardSlot` |
76-
| [`SoundArgument`](./argument_sound.md) | `org.bukkit.Sound` |
77-
| [`TeamArgument`](./argument_team.md) | **`org.bukkit.scoreboard.Team`** |
78-
| [`TimeArgument`](./argument_time.md) | **`dev.jorel.commandapi.wrappers.Time`** |
79-
| [`WorldArgument`](./argument_world.md) | `org.bukkit.World` |
45+
| Argument | Class (T) |
46+
|----------------------------------------------------------------------------------------------:|:-----------------------------------------------|
47+
| [`AdvancementArgument`](../types/misc/advancement-arguments) | `org.bukkit.advancement.Advancement` |
48+
| [`AxisArgument`](../types/position/axis-arguments) | `java.util.EnumSet<org.bukkit.Axis>` |
49+
| [`BiomeArgument`](../types/misc/biome-arguments) | `org.bukkit.block.Biome` |
50+
| [`BooleanArgument`](../types/primitive-arguments) | **`Boolean`** |
51+
| [`ChatColorArgument`](../types/chat/spigot-chat-arguments#chat-color-argument) | `org.bukkit.ChatColor` |
52+
| [`DoubleArgument`](../types/primitive-arguments#numerical-arguments) | **`Double`** |
53+
| [`EnchantmentArgument`](../types/misc/enchantment-arguments) | `org.bukkit.enchantments.Enchantment` |
54+
| [`EntityTypeArgument`](../types/entities-arguments#entity-type-argument) | `org.bukkit.entity.EntityType` |
55+
| [`FloatArgument`](../types/primitive-arguments#numerical-arguments) | **`Float`** |
56+
| [`FloatRangeArgument`](../types/ranged-arguments#the-integerrange--floatrange-class) | `dev.jorel.commandapi.wrappers.FloatRange` |
57+
| [`FunctionArgument`](../../functions-and-tags/function-arguments) | **`org.bukkit.NamespacedKey`** |
58+
| [`GreedyStringArgument`](../types/string-arguments#greedy-string-argument) | `String` |
59+
| [`IntegerArgument`](../types/primitive-arguments#numerical-arguments) | **`Integer`** |
60+
| [`IntegerRangeArgument`](../types/ranged-arguments#the-integerrange--floatrange-class) | `dev.jorel.commandapi.wrappers.IntegerRange` |
61+
| [`ItemStackArgument`](../types/misc/itemstack-arguments) | `org.bukkit.inventory.ItemStack` |
62+
| [`Location2DArgument`](../types/position/location-arguments#2d-location) | `dev.jorel.commandapi.wrappers.Location2D` |
63+
| [`LocationArgument`](../types/position/location-arguments#3d-location) | `org.bukkit.Location` |
64+
| [`LongArgument`](../types/primitive-arguments#numerical-arguments) | **`Long`** |
65+
| [`LootTableArgument`](../types/misc/loottable-arguments) | `org.bukkit.loot.LootTable` |
66+
| [`MathOperationArgument`](../types/misc/mathoperation-arguments) | `dev.jorel.commandapi.wrappers.MathOperation` |
67+
| [`NBTCompoundArgument`](../types/nbt-arguments) | `de.tr7zw.nbtapi.NBTContainer` |
68+
| [`ObjectiveArgument`](../types/scoreboard/objective-arguments#objective-argument) | **`org.bukkit.scoreboard.Objective`** |
69+
| [`OfflinePlayerArgument`](../types/entities-arguments#player-argument) | `org.bukkit.OfflinePlayer` |
70+
| [`ParticleArgument`](../types/misc/particle-arguments) | `org.bukkit.Particle` |
71+
| [`PlayerArgument`](../types/entities-arguments#player-argument) | `org.bukkit.entity.Player` |
72+
| [`PotionEffectArgument`](../types/misc/potion-arguments) | `org.bukkit.potion.PotionEffectType` |
73+
| [`RecipeArgument`](../types/misc/recipe-arguments) | `org.bukkit.inventory.Recipe` |
74+
| [`RotationArgument`](../types/position/rotation-arguments) | `dev.jorel.commandapi.wrappers.Rotation` |
75+
| [`ScoreboardSlotArgument`](../types/scoreboard/scoreboard-arguments#scoreboard-slot-argument) | `dev.jorel.commandapi.wrappers.ScoreboardSlot` |
76+
| [`SoundArgument`](../types/misc/sound-arguments) | `org.bukkit.Sound` |
77+
| [`TeamArgument`](../types/scoreboard/team-arguments) | **`org.bukkit.scoreboard.Team`** |
78+
| [`TimeArgument`](../types/misc/time-arguments) | **`dev.jorel.commandapi.wrappers.Time`** |
79+
| [`WorldArgument`](../types/misc/world-arguments) | `org.bukkit.World` |
8080

8181
## Safe time arguments
8282

docs/en/create-commands/registration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ I think the easiest way to explain it is with an example:
2222

2323
- First, we create a new `CommandAPICommand`, with the name of the command that the sender must enter to run it.
2424

25-
- Then, we create an argument to add to the command using `withArguments`. This is described in more detail in [the section on arguments](./arguments).
25+
- Then, we create an argument to add to the command using `withArguments`. This is described in more detail in [the section on arguments](./arguments/arguments).
2626

2727
- In this example, we add an alias, "broadcast", to the command. This allows the sender to use either `/broadcastmsg <message>` or `/broadcast <message>`.
2828

2929
- By using `withPermission`, we require the sender to be an OP to run the command.
3030

31-
- We control what the command does using `executes` (this is described in more detail in [the section on command executors](./executors)).
31+
- We control what the command does using `executes` (this is described in more detail in [the section on command executors](./executors/command-executors)).
3232

3333
- Finally, we register the command to the CommandAPI using `register`.
3434

@@ -62,7 +62,7 @@ CommandAPICommand withPermission(CommandPermission)
6262
CommandAPICommand withPermission(String)
6363
```
6464

65-
The `withPermission` method is used to assign a permission required to execute the command. (See [the section on permissions](permissions) for more info).
65+
The `withPermission` method is used to assign a permission required to execute the command. (See [the section on permissions](./permissions) for more info).
6666

6767
```java
6868
CommandAPICommand withRequirements(sender -> {})
@@ -140,7 +140,7 @@ CommandAPICommand executesNative((proxy, args) -> {})
140140
CommandAPICommand executesNative(info -> {})
141141
```
142142

143-
Executes a command regardless of what the command sender is, using the `NativeProxyCommandSender`. Read more about native proxied command senders [here](./native).
143+
Executes a command regardless of what the command sender is, using the `NativeProxyCommandSender`. Read more about native proxied command senders [here](./executors/native-sender).
144144

145145
:::info
146146

@@ -199,9 +199,9 @@ Register the command with the provided plugin's name.
199199

200200
It is recommended to register commands in either the `onLoad()` or `onEnable()` method. With the CommandAPI, depending on whether you use `onLoad()` or `onEnable()` to load your commands depends on whether your plugin is used with Minecraft's functions:
201201

202-
| When to load | What to do |
203-
|---------------------|-------------------------------------------------------------------------------------------------------------|
204-
| `onLoad()` method | Register commands to be used in Minecraft functions ([see the Function section for more info](./functions)) |
205-
| `onEnable()` method | Register regular commands |
202+
| When to load | What to do |
203+
|---------------------|--------------------------------------------------------------------------------------------------------------------------------|
204+
| `onLoad()` method | Register commands to be used in Minecraft functions ([see the Function section for more info](./functions-and-tags/functions)) |
205+
| `onEnable()` method | Register regular commands |
206206

207207
The CommandAPI does support registering commands outside of these methods while the server is running. Commands registered after the server is done loading _should_ work the same as commands registered in `onEnable`.

docs/en/create-commands/unregistration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ depend:
145145

146146
:::info
147147

148-
If you can't find the code where a CommandAPI command is registered or just don't have access to the code of a plugin, you can still figure out when a command is registered. If you set [`verbose-outputs`](./config.md#verbose-outputs) to `true` in the CommandAPI's configuration, it will log command registration.
148+
If you can't find the code where a CommandAPI command is registered or just don't have access to the code of a plugin, you can still figure out when a command is registered. If you set [`verbose-outputs`](../user-setup/config#verbose-outputs) to `true` in the CommandAPI's configuration, it will log command registration.
149149

150150
For the ExamplePlugin, setting `verbose-outputs` to `true` gives this:
151151

docs/en/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ Using the search icon in the top left corner, you can search for anything in thi
4040
## Latest documentation changes ( `9.4.1 → 9.7.0` )
4141
- Updates [Particle data (1.20.5+)](./create-commands/arguments/types/misc/particle-arguments) page with new `Trail` particle information.
4242
- Adds new [`thenNested()`](./create-commands/command-trees#reduce-indentation-with-nested-arguments) method to command trees.
43-
- Adds [tools](./test) for running unit tests on commands.
43+
- Adds [tools](./test/) for running unit tests on commands.

docs/en/test/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ For a big-picture view, you can find example projects that include automated tes
1212

1313
:::danger Developer's Note:
1414

15-
Many methods have not yet been implemented in the test toolkit. Most notably, only [primitive arguments](../create-commands/arguments/types/primitive-arguments), [String arguments](../create-commands/arguments/types/string-arguments), [literal arguments](./category_literal_arguments.md), and the [`IntegerRangeArgument`](../create-commands/arguments/types/ranged-arguments) are fully implemented. The [`EntitySelectorArgument`, `PlayerArgument`, and `OfflinePlayerArgument`](../create-commands/arguments/types/entities-arguments) should mostly work, though [target selector arguments](https://minecraft.wiki/w/Target_selectors#Target_selector_arguments) (e.g. `@e[type=pig]`) are not yet implemented.
15+
Many methods have not yet been implemented in the test toolkit. Most notably, only [primitive arguments](../create-commands/arguments/types/primitive-arguments), [String arguments](../create-commands/arguments/types/string-arguments), [literal arguments](../create-commands/arguments/types/literal/), and the [`IntegerRangeArgument`](../create-commands/arguments/types/ranged-arguments) are fully implemented. The [`EntitySelectorArgument`, `PlayerArgument`, and `OfflinePlayerArgument`](../create-commands/arguments/types/entities-arguments) should mostly work, though [target selector arguments](https://minecraft.wiki/w/Target_selectors#Target_selector_arguments) (e.g. `@e[type=pig]`) are not yet implemented.
1616

1717
If a test ends up calling a method that has not yet been implemented, an `UnimplementedMethodException` will be thrown, causing the test to fail. If you see an `UnimplementedMethodException`, please tell us about it with a [GitHub Issue](https://github.com/CommandAPI/CommandAPI/issues) or a message in the CommandAPI Discord. Pull requests are also always welcome!
1818

19-
In the short term, you can try to resolve an `UnimplementedMethodException` by implementing the method yourself. The process for doing that is described [here](./test_loadmockcommandapi.md#loading-a-custom-commandapi-platform-implementation).
19+
In the short term, you can try to resolve an `UnimplementedMethodException` by implementing the method yourself. The process for doing that is described [here](./load-mock-commandapi#loading-a-custom-commandapi-platform-implementation).
2020

2121
:::

0 commit comments

Comments
 (0)