Skip to content

@pumpkin-plugins/waypoints API / commands/item-input / itemIconInputFromCommand

Function: itemIconInputFromCommand() ​

itemIconInputFromCommand(command): string | undefined

Defined in: packages/waypoints/src/commands/item-input.ts:9

Extracts a selected item token from Pumpkin's pre-dispatch command event.

The pinned Pumpkin never converts item arguments for WASM plugins, so they arrive empty; see build_consumed_args_from_context in https://github.com/Pumpkin-MC/Pumpkin/blob/0.2.0%2B26.3-26.51/crates/pumpkin/src/plugin/loader/wasm/wasm_host/args.rs. Remove this workaround once the pinned server passes the item through.

Parameters ​

command ​

string

Returns ​

string | undefined

pumpkin-plugins documentation