saving and loading inventories issue

  • 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.

Mich7272

Member
Apr 12, 2019
49
0
0
Server: Spigot 1.14.1
skript: 2.4 beta
console errors: None
This is my code
Code:
on death of a player:
    set {_inventory.%victim%::*} to items in the victim's inventory
    force respawn the victim
    if {vd.%victim%} is true:
        clear drops
        message "{@logo} %attacker% te mato respawn en 5 segundos" to victim
        set the victim's gamemode to spectator
        wait 1 second
        message "{@logo} 4 segundos" to victim
        wait 1 second
        message "{@logo} 3 segundos" to victim
        wait 1 second
        message "{@logo} 2 segundos" to victim
        wait 1 second
        message "{@logo} 1 segundo" to victim
        wait 1 second
        set the victim's gamemode to survival
        add {_inventory.%victim%::*} to the victim's inventory
Problem:
The problem is when I return the inventory it goes out in disorder and the armor disappears. I want to return it in the same order and with the armor I already had
 
Status
Not open for further replies.