I want to prevent players from renaming custom items, but Skript doesn’t seem to have any syntax that can be used for this. I tried detecting when a player puts an item in the inventory and then closing the inventory directly
but it doesn’t work when the player uses shift+left-click because the previous condition is in the anvil’s inventory. Therefore, Skript seems unable to detect when a player clicks on the contents of their own backpack. How can I detect this? Or are there any other alternative solutions?
Code:
on inventory click:
type of event-inventory is anvil inventory
name of cursor slot of player is "special axe"
close inventory of player
send "no" to player
but it doesn’t work when the player uses shift+left-click because the previous condition is in the anvil’s inventory. Therefore, Skript seems unable to detect when a player clicks on the contents of their own backpack. How can I detect this? Or are there any other alternative solutions?