#cannot execute command when player clicks on item
1 messages · Page 1 of 1 (latest)
I don't understand how to do it
you can use Bukkit.dispatchCommand I think
how does it work?
Bukkit.dispatchCommand(player, "/gamemode creative")
Its equals to p.performCommand?
i don't mean this, i mean i want to execute a command when the player is holding the object i configured from the.yml file but i don't know how to do it
oh I see
Slot1:
Name: "ciao"
Material: WOOD
Lore:
- "test"
until now i managed to do this
essentially you need to tag your item with some kind of id that you can check in the playerItemheldEvent to see if its the correct item
But i want to add other string with command: kill %player% in every slot
Ok i try