Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Bluehawk409, Jun 21, 2021.
Hi, I am trying to make a slot in a GUI that only lets swords inside of it. Any way how to do this?
On the inventory click event or pickup item event check if it’s that slot and if it isn’t a sword going into it cancel the event.
But I need to be able to get what item was put in the slot, and cancel the event if it doesnt match, and I don't know how to get what item was put in the slot.
Pretty simple if you look in the docs,