Skip to content

Commit

Permalink
Fix attempted brigadier registration on spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHeijden committed Aug 21, 2022
1 parent 233693a commit 6b49a94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ private void loadCommands() {
);

// Register capabilities if allowed
if (commandManager.hasCapability(CloudBukkitCapabilities.BRIGADIER)) {
boolean hasBrigadier = commandManager.hasCapability(CloudBukkitCapabilities.BRIGADIER);
boolean hasNativeBrigadier = commandManager.hasCapability(CloudBukkitCapabilities.NATIVE_BRIGADIER);
boolean hasCommodoreBrigadier = commandManager.hasCapability(CloudBukkitCapabilities.COMMODORE_BRIGADIER);
if (hasBrigadier && (hasNativeBrigadier || hasCommodoreBrigadier)) {
commandManager.registerBrigadier();
CloudBrigadierManager<CommandSender, ?> brigadierManager = commandManager.brigadierManager();
var handler = new BrigadierHandler(brigadierManager);
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/VersionConstants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ object VersionConstants {
const val pluginYmlVersion = "0.5.2"
const val shadowVersion = "7.1.2"
const val minecraftVersion = "1.19.2-R0.1-SNAPSHOT"
const val cloudVersion = "1.7.0"
const val cloudVersion = "1.8.0-SNAPSHOT"
const val adventureVersion = "4.12.0-SNAPSHOT"
const val adventurePlatformVersion = "4.1.2"
const val paperLibVersion = "1.0.7"
Expand Down

0 comments on commit 6b49a94

Please sign in to comment.