Hello, I have a /enchant command on my server, but I'd rather it be more complex, because right now the usage is just
/enchant <enchantment>
I'd rather you be able to specify the level of enchantment as well, for example "Sharpness 5" or "Protection 4". Can someone help me?
Here's my code:
/enchant <enchantment>
I'd rather you be able to specify the level of enchantment as well, for example "Sharpness 5" or "Protection 4". Can someone help me?
Here's my code:
Code:
command /enchant [<enchantment type>]:
description: Enchant your held item.
permission: command.enchant
permission message: {@nopermission}
aliases: /enchantment
trigger:
if arg 1 is not set:
message "&cUsage: /enchant <enchantment>"
stop
if player's tool is air:
message "&cUsage: /enchant <enchantment>"
stop
else:
enchant player's tool with arg 1
send "&7Your item has been enchanted with &c%arg 1%."
stop