跳到主要内容

Enchantment Command Manifest

Type: enchantment_command_manifest

Tags: enchantment, command, manifest

Registers the admin command of the enchantment system through the engine's command pipeline. The command follows engine reloads automatically.

Command

/{commandName} give <player> <enchant> [level]

The <enchant> argument matches the definition's name or displayName (case-insensitive, spaces as underscores). The book is built like loot/trade books and dropped at the player's feet when the inventory is full.

Configuration

FieldTypeDefaultDescription
commandNameString"enchantcreator"Name of the admin command
adminPermissionString"enchantcreator.admin"Permission required to use the command
playerNotFoundString"Player '{player}' is not online."Message when the target is offline
enchantmentNotFoundString"Unknown enchantment '{enchant}'."Message when no enchantment matches
bookGivenString"Gave {enchant} {level} to {player}."Feedback message (placeholders: {player}, {enchant}, {level})