Solved give item at full 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 community!

    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.

SaltyPotata

Member
May 26, 2020
17
0
0
So I was wondering if I can do the essentials give items thing with full inventory. Unfortunetly essentials won't give you the item if you use the /give command and your inventory is full, it will delete it. Is there a way to store these items? I did a thing where I stored them in a gui and with a permission you can get it but it's not efficient. Can I make a command not gui related which stores these items?
 
Do you want to make your own /give command or do you still want to use the one from essentials?
 
I'm not sure why you want this feature? Would it not be better to check if they can hold an item, and then just wait to give them the item until they got the space needed?
 
But in what context does the player get the item?
If I use give command with essentials
[doublepost=1590614294,1590614169][/doublepost]
I'm not sure why you want this feature? Would it not be better to check if they can hold an item, and then just wait to give them the item until they got the space needed?
I rethinked this and it's not better cuz I want an essentials command and I want them to have a storage where the item will be put if they have a full inv.
[doublepost=1590618199][/doublepost]
But in what context does the player get the item?
You still here?
 
I'm not sure how to do it right now without it getting too complicated
 
That part is easy enough, but it's not easy to get the items from an essentials command. Maybe you'll need to use skript-mirror idk.
 
This is just very basic, but you could do something like this:
Code:
command /give <player> <item> <number>:
    permission: give.items
    usage: /give <player> <item> <amount>
    trigger:
        give arg-3 of arg-2 to arg-1
 
Status
Not open for further replies.