Package-level declarations
Paper integration layer for the core DSL.
This package provides:
Registration helpers like io.github.kraftlin.command.paper.registerKraftlinCommands for Paper commands.
Optional alias override support by setting
overrideAliases = truewhen building commands (uses Paper's alias override when available).Extensions for io.github.kraftlin.command.paper.PaperLiteralNode such as io.github.kraftlin.command.paper.executesPlayer and io.github.kraftlin.command.paper.requiresPermission.
Access to the underlying Paper
CommandSourceStackvia io.github.kraftlin.command.paper.PaperSource.
Types
A built command ready for registration via registerKraftlinCommands.
ArgumentNode specialized to Paper's CommandSourceStack.
KContext specialized to Paper's CommandSourceStack.
ExecuteScope specialized to Paper's CommandSourceStack.
LiteralNode specialized to Paper's CommandSourceStack.
Paper platform adapter for cross-platform command definitions.
Paper's Brigadier command source type.
Functions
Execution handler that extracts the CommandSender before invoking block.
Execution handler restricted to Player senders. Throws a command error if the sender is not a player.
Execution handler with custom result code, restricted to Player senders.
Execution handler with custom result code that extracts the CommandSender.
Declares a new Kraftlin command for Paper.
Registers one or more Kraftlin commands for this plugin.
Returns the sender as a Player, or throws a command error if the sender is not a player.
Requires the sender to have the given permission.
Requires the sender to be a Player.
Requires the sender to match a predicate.