跳到主要内容

enchantment_command_manifest

Admin command for giving custom enchantment books — misc entry.

Entry Information

PropertyValue
Entry IDenchantment_command_manifest
TypeMisc
ColorOrange
Iconmdi:console-line

Description

Registers the admin command for the enchantment system through the engine's [CustomCommandEntry] pipeline: /{commandName} give <player> <enchant> [level].

Fields

FieldTypeDescription
commandNameStringName of the admin command
adminPermissionStringPermission required to use the command
playerNotFoundStringMessage sent when the target player is not online
enchantmentNotFoundStringMessage sent when no enchantment matches the given name
bookGivenStringMessage sent when the book has been given (placeholders: {player}, {enchant}, {level})

Usage Example

- entry: enchantment_command_manifest
name: "Admin command for giving custom enchantment books"
commandName: ""
adminPermission: ""
playerNotFound: ""
enchantmentNotFound: ""
bookGiven: ""