Repository navigation
feat: add typed command overloads, command execution and recipes to the plugin api - #17
Merged
Merged
Conversation
NaySurGithub
force-pushed
the
feat/commands-recipes
branch
from
November 14, 2026 20:23
53b3723 to
a5293f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batch 5 of the plugin API additions.
Depends on the batch 4 PR (#16); merge that one first. The base branch is the batch 4 branch so the diff only shows this batch.
What it adds
commandAddOverload: typed parameters (int, float, string, bool, target, position, block position, message, JSON, enum) for a command of the plugin; enum values are completed by the client.FalconCommandDescriptoris not changed, for binary compatibility: overloads come in a separate call.serverExecuteCommand(as the console) andplayerExecuteCommand(as the player, with their permissions).registerRecipe(shaped or shapeless crafting table recipes) andremoveRecipe(plugin, pack or vanilla crafting recipe).Commands,Player,Recipes), Java (commands(),server().recipes()) and Wasm bindings, README section; the examples give/give-diamondan int overload and add a recipe.All functions are appended at the end of
FalconServerApi(API 1.0.6, bumped by batch 1).Checks
CI of the batch 6 branch (
feat/world), which contains this one: Linux, Windows (MSVC and MinGW), .NET and Java jobs green; the macOS jobs were cancelled by the runner, as onmain.