Skip to content

@pumpkin-plugins/plugin-kit API / host / runCommand

Function: runCommand() ​

runCommand(id, sender, args): number | undefined

Defined in: tools/plugin-kit/src/host.ts:94

Runs one of this plugin's command handlers.

Parameters ​

id ​

number

The handler id the host passed back.

sender ​

CommandSender

Who ran the command.

args ​

ConsumedArgs

The consumed arguments from Pumpkin.

Returns ​

number | undefined

The success count, or undefined when the id belongs to the API package.

Pumpkin Plugins documentation