I am attempting to make a staff mode for my server with Skript.
I have just about everything done, but I am wondering how I can implement an event when I right-click a player with a certain item.
I've tried it before, and it looked a little something like this:
on right click on player:
if player is holding book named "Inventory":
make player execute command "/inv %clicked entity%"
It did work, but it also ran the command when I right-clicked a player with ANY item.
I have just about everything done, but I am wondering how I can implement an event when I right-click a player with a certain item.
I've tried it before, and it looked a little something like this:
on right click on player:
if player is holding book named "Inventory":
make player execute command "/inv %clicked entity%"
It did work, but it also ran the command when I right-clicked a player with ANY item.