Solved Creative inventory

  • Welcome to skUnity!

    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 comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Radicc

Member
Oct 7, 2022
17
0
1
18
I want to see what items players take from the creative inventory mostly bcause i want to see if anyone is abusing and bcause there is certain items i dont want to be spawnable with creative. Can anyone help? I HAVE searched the docs and i tryied to google it too :emoji_slight_smile:
 
i tried but there is no event for creative and i tried to send "%event-item% from %inventory name%" does not work!
time to use skript-reflect for handle that!!!!

Code:
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
[docs link]
 
  • Like
Reactions: Radicc
You could just loop through all players and remove the items you don't want the players to have..
 
You 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.

He want stop getting items from 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%”
 
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%”
alternative 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
upload_2022-10-13_12-47-18.png
 
  • Like
Reactions: Radicc
alternative 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
Thanks and sorry i dint see the docs link :emoji_grinning:
 
Status
Not open for further replies.