Server: Spigot 1.14.1
skript: 2.4 beta
console errors: None
This is my code
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
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
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