Hey, im currently creating a custom enchantments Script without using Tuske and i'm having a problem.
The problem is, that the tool doesn't have a name/display name, so it will be called "<none>". Is there any way i can fix this without manually checking the item and setting a name for it?
Spigot: 1.12.2
Plugins: Tuske, Skript
Skript: 2.4-alpha3
Tuske: 1.8.2-Pikachu-Patch-3
Plugins: Tuske, Skript
Skript: 2.4-alpha3
Tuske: 1.8.2-Pikachu-Patch-3
Code:
command /enchantmytool:
trigger:
set {_name} to display name of player's held item
set name of player's tool to "&b%{_name}%"
The problem is, that the tool doesn't have a name/display name, so it will be called "<none>". Is there any way i can fix this without manually checking the item and setting a name for it?