Skip to content

Fix/fix command api#275

Merged
ammodev merged 3 commits intoversion/1.21.11from
fix/fix-command-api
Apr 3, 2026
Merged

Fix/fix command api#275
ammodev merged 3 commits intoversion/1.21.11from
fix/fix-command-api

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

solves #274

…type syntax in MiniMessageArgument and SuspendCustomArgument
@TheBjoRedCraft TheBjoRedCraft self-assigned this Apr 3, 2026
Copilot AI review requested due to automatic review settings April 3, 2026 10:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Surf-API’s CommandAPI integrations to match CommandAPI’s updated argument-type API (supplier/consumer-style), resolving the crash reported in #274.

Changes:

  • Bump CommandAPI dependency to 11.2.0.
  • Update Velocity/Bukkit argument wrappers to pass argument types via method/lambda references instead of eager getters.
  • Bump project version to 1.21.11-2.74.0.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
surf-api-velocity/surf-api-velocity-api/src/main/kotlin/dev/slne/surf/surfapi/velocity/api/command/args/SuspendCustomArgument.kt Switch Argument constructor usage to the new rawType supplier style.
surf-api-velocity/surf-api-velocity-api/src/main/kotlin/dev/slne/surf/surfapi/velocity/api/command/args/MiniMessageArgument.kt Update to StringArgumentType::string supplier reference for the argument type.
surf-api-bukkit/surf-api-bukkit-api/src/main/kotlin/dev/slne/surf/surfapi/bukkit/api/command/args/AdventureCompoundBinaryTagArgument.kt Update to commandArgumentTypes::compoundTag supplier reference; minor formatting.
gradle/libs.versions.toml Bump commandapi version to 11.2.0.
gradle.properties Bump project version to 1.21.11-2.74.0.

@twisti-dev twisti-dev enabled auto-merge April 3, 2026 11:27
@twisti-dev twisti-dev added this pull request to the merge queue Apr 3, 2026
@ammodev ammodev removed this pull request from the merge queue due to a manual request Apr 3, 2026
@ammodev ammodev merged commit 0dca376 into version/1.21.11 Apr 3, 2026
4 checks passed
@ammodev ammodev deleted the fix/fix-command-api branch April 3, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants