Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ▒██████ ▒██████████ #
- # ▒██ ▒██ ▒████ ▒███████ ▒████ ▒███████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒████████ ▒████████ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▀▀ #
- # ▒██ ▒██ ▒██ ▒██ ▒███████ ▒██ ▒██ ▒███████ ▒██ ▒██████████ ▒████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
- # ▒██████ ▒████████ ▒██ ▒████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒██ ▒██ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒███████ ▒███████ ▒██████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
- options:
- Permissão_Spawn: API.SPAWN
- Permissão_Vip: API.VIP.SPAWN
- command /spawn [<text>]:
- trigger:
- if arg 1 is not set:
- if player has permission "{@Permissão_Vip}":
- if {spawn} is set:
- teleport player to {spawn}
- send ""
- send "&aTeleportado para o &fspawn&a com sucesso."
- send ""
- else:
- send ""
- send "&cO &fspawn &cainda não foi setado."
- send ""
- else:
- if {spawn} is set:
- send "&aAguarde &f3 &asegundos."
- wait 3 second
- send ""
- send "&aTeleportado para o &fspawn&a com sucesso."
- send ""
- teleport player to {spawn}
- else:
- send ""
- send "&cO &fspawn &cainda não foi setado."
- send ""
- if player has permission "{@Permissão_Spawn}":
- if arg 1 is "setar":
- if {spawn} is not set:
- set {spawn} to location of player
- send ""
- send "&7A localização do &4SPAWN &7foi setada com sucesso."
- send ""
- wait 1 second
- teleport player to {spawn}
- else:
- send ""
- send "&7A localização do &4SPAWN &7já foi setada."
- send ""
- wait 1 second
- teleport player to {spawn}
- if arg 1 is "deletar":
- if {spawn} is set:
- clear {spawn}
- send ""
- send "&7A localização do &4SPAWN &7foi deletada com sucesso."
- send ""
- else:
- send ""
- send "&7A localização do &4SPAWN &7já foi deletada."
- send ""
- if arg 1 is "administrador":
- open chest with 3 rows named "&8SPAWN" to player
- wait 2 ticks
- format slot 11 of player with light green wool named "&aSetar" with lore "||&7Clique para setar a localização do spawn.||||&7O spawn será setado em sua localização.||&f" to close then run [make player execute command "spawn setar"]
- format slot 13 of player with red wool named "&4Deletar" with lore "||&7Clique para deletar a localização do spawn.||&f" to close then run [make player execute command "spawn deletar"]
- format slot 15 of player with lever named "&eTeleportar" with lore "||&7Clique para se teletransportar para o spawn.||&f" to close then run [make player execute command "spawn"]
- if arg 1 is not "administrador" or "setar" or "deletar":
- send "&cUse /spawn administrador"
- else:
- send "&cSem permissão."
Advertisement
Add Comment
Please, Sign In to add comment