Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
i tried but there is no event for creative and i tried to send "%event-item% from %inventory name%" does not work!'Inventory click event skunity'?
Are you try to google that?
time to use skript-reflect for handle that!!!!i tried but there is no event for creative and i tried to send "%event-item% from %inventory name%" does not work!
import:
org.bukkit.event.inventory.InventoryCreativeEvent
on InventoryCreativeEvent:
if event.getCurrentItem() is dirt:
send "You cant get this from creative" to event.getWhoClicked()
cancel event
He want stop getting items from creative inventoryYou could just loop through all players and remove the items you don't want the players to have..
i want SOME items to not be taken from the CREATIVE inventory.You could just loop through all players and remove the items you don't want the players to have..
i also want to send a message to all players with a permission that says “%player% took %(dont know what to put herr)% from %event-inventory%”He want stop getting items from creative inventory
alternative of event-inventory = event.getInventory()i want SOME items to not be taken from the CREATIVE inventory.
i also want to send a message to all players with a permission that says “%player% took %(dont know what to put herr)% from %event-inventory%”
Thanks and sorry i dint see the docs linkalternative of event-inventory = event.getInventory()
alternative of clicked event-item = event.getCurrentItem()
alternative of event-player = event.getWhoClicked()
Simply look at docs what I send , and make something like i wrote above
View attachment 7131