I need help because whend people leave the server and they have a dye whend they join again they lost the item they buy. and how i can set whend he buy that item can just selec that item and no buyit again plis help
sorry for my bad English I am Spanish
sorry for my bad English I am Spanish
code_language.skript:
on rightclick holding a gold sword:
player has permission "user.lobby"
player is in world "Lobby"
open chest with 1 rows named "&a&lCosmeticos" to player
format slot 0 of the player with 1 sponge named "&eSalto Epico 100" to close then run [make player execute command "/salto"]
format slot 1 of the player with 1 sugar named "&eVelocidad Epica 100" to close then run [make player execute command "/velocidad"]
#Salto epico
command /salto:
permission: user.lobby
trigger:
if player's money is more than or equal to 100:
subtract 100 from player's money
give 1 sponge named "&aSalto &bEpico" to the player
else:
send "&c&lLosiento No tienes dinero."
send "&bPero En la tienda Podras comprarlo o ganalo votando en el lobby"
command /velocidad:
permission: user.lobby
trigger:
if player's money is more than or equal to 100:
subtract 100 from player's money
give 1 sugar named "&aVelocidad &bEpica" to the player
else:
send "&c&lLosiento No tienes dinero."
send "&bPero En la tienda Podras comprarlo o ganalo votando en el lobby"
on rightclick holding a sponge:
player has permission "user.lobby"
player is in world "Lobby"
apply jump boost 8 to the player for 10 second
send "&9Salto epico 10 segundos"
remove 1 sponge from the player
give 30 gray dye to the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
give 1 sponge to the player
#Velocidad
on rightclick holding a sugar:
player has permission "user.lobby"
player is in world "Lobby"
apply speed 8 to the player for 10 second
send "&9rapides epica 10 segundos"
remove 1 sugar from the player
give 30 gray dye to the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
remove 1 gray dye from the player
wait 1 second
give 1 sugar to the player