Skip to content

Commit d81cac5

Browse files
committed
Document the updated config options
1 parent 2516a3a commit d81cac5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

docs/en/dev-setup/shading.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ However, the `CommandAPIConfig` class is abstract and can’t be used to configu
5252
===Bukkit
5353
```java
5454
public abstract class CommandAPIBukkitConfig extends CommandAPIConfig {
55-
CommandAPIBukkitConfig useLatestNMSVersion(boolean value); // Whether the latest NMS implementation should be used or not
56-
CommandAPIBukkitConfig beLenientForMinorVersions(boolean value); // Whether the CommandAPI should be more lenient with minor Minecraft versions
55+
CommandAPIBukkitConfig fallbackToLatestNMS(boolean fallbackToLatestNMS); // Whether the CommandAPI should fall back to the latest NMS version if no implementation for the current version was found
5756
CommandAPIBukkitConfig missingExecutorImplementationMessage(String value); // Set message to display when executor implementation is missing
5857
<T> CommandAPIConfig initializeNBTAPI(Class<T> nbtContainerClass, Function<Object, T> nbtContainerConstructor); // Initializes hooks with an NBT API. See NBT arguments documentation page for more info
5958
}

docs/en/upgrading-parts/10.1.2-to-11.0.0.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,20 @@ Further changes have been made to arguments that work with components. The class
4343
removed. Instead, the `ChatArgument`, `ChatComponentArgument` and `ChatColorArgument` have been implemented platform specific and return different types on Paper and Spigot.
4444
On Paper, Adventure components are used while Spigot uses BungeeCord components.
4545

46-
More argument changes have been made:
46+
**More argument changes have been made:**
4747

4848
- The `FloatRangeArgument` has been renamed to `DoubleRangeArgument` and now returns a `DoubleRange` object
4949
- The `PlayerArgument` and `OfflinePlayerArgument` have been replaced by the `PlayerProfileArgument` which returns a `List&lt;PlayerProfile&gt;`. The `PlayerProfile` class changes depending on if you are on Paper or on Spigot. Use the `EntitySelectorArgument.OnePlayer` if you want a `Player` object.
5050
- The `AsyncOfflinePlayerArgument` has been replaced by the `AsyncPlayerProfileArgument`
5151
- The `ChatArgument`, `ChatComponentArgument` and `ChatColorArgument` do no longer have any `Adventure` prefixes and return different types depending on the platform.
5252
- The `ChatArgument` returns a `SignedMessage` object on Paper
53-
- The `BlockStateArgument` now returns a `BlockState` object instead of a `BlockData` object
53+
- The `BlockStateArgument` now returns a `BlockState` object instead of a `BlockData` object
54+
55+
#### Config changes
56+
57+
The `use-latest-nms-version` and `be-lenient-for-minor-versions` config options have been removed and have been replaced by the new `fallback-to-latest-nms` config option.
58+
This config options combines the functionality of the former config options by first trying to load the correct version and if it can't find a matching implementation for the current version,
59+
it, if set to `true`, will load the latest implementation.
60+
On Paper it is set to `true` by default and on Spigot it is set to `false`.
61+
62+
Furthermore, any config options relating to reloading datapacks have been removed on Paper as they are not needed anymore.

0 commit comments

Comments
 (0)