Equip an item
equip_itemEquip an item from the player's inventory into a chosen slot, defaulting to the main hand. Fails if the item is not found.
Instructions
Move the first matching stack from the player's inventory into a slot (main hand by default). Fails if the player doesn't have the item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item to equip, as a lowercase Bukkit material key (e.g. "diamond_sword", "oak_planks") | |
| slot | No | Target slot name or raw inventory slot index (default main_hand) | |
| player | No | Online player name (defaults to the first online player) |