The skript loads without error.
on death of the player the items are removed.
on respawn the chest is given to the player but upon open only 1 item/stack is in the gui.
any help would be great, thanks
on death of the player the items are removed.
on respawn the chest is given to the player but upon open only 1 item/stack is in the gui.
any help would be great, thanks
Code:
Options:
Prefix: &fPixel&aislands &8-
Message_On_Respawn: &7Your items are being loaded...
Message_Warning: &cIf you open the locker and closed it all the items inside will be lost forever! # Message #
ItemOnRespawn: chest
ItemOnRespawnName: &f&lPixel&a&lLocker
GUINameOnOpen: &a&lLocker &f%player%
on death of a player:
loop all items in the inventory of player:
add loop-item to {chargeback.%uuid of victim%::*}
set {chargeback.enabled.%uuid of victim%} to true
wait 2 seconds
clear player's inventory
on respawn:
if {chargeback.enabled.%uuid of player%} is true:
message "{@Prefix}: {@Message_On_Respawn}"
wait 3 seconds
give {@ItemOnRespawn} named "{@ItemOnRespawnName}" to player
wait 1 tick
message "{@Prefix}: {@Message_Warning}"
set {chargeback.enabled.%uuid of player%} to false
on right click:
if player's tool is {@ItemOnRespawn} named "{@ItemOnRespawnName}":
open chest with 6 row named "{@GUINameOnOpen}" to player
wait 2 ticks
add {chargeback.%uuid of player%::*} to player's current inventory
wait 2 ticks
remove 1 of {@ItemOnRespawn} named "{@ItemOnRespawnName}" from player
delete {chargeback.%uuid of player%::*}
Last edited: