Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tpa [<onlineplayer>]:
- trigger:
- if arg 1 is set:
- if {tpatoggle.%arg 1%::*} is false:
- if {_pedido.%player%.%arg 1%} is false:
- send "&6&lTPA: &9%player%&7 quer teleportar-se até você! &1[ACEITAR] &4[NEGAR]" to arg 1
- set {_pedido.%player%.%arg 1%} to true
- wait 20 seconds
- set {_pedido.%player%.%arg 1%} to false
- stop
- if {_pedido.%player%.%arg 1%} is true:
- send "&6&lTPA: &7Você tenque esperar 20 segundos para mandar tpa novamente!"
- stop
- else:
- send "&6&lTPATOGGLE: &9%arg 1% &7está com tpa desativado!" to player]
- stop
- else:
- send "&6&lTPA: &7Digite o nome de um jogador."
- stop
- command /tpaceitar [<onlineplayer>]:
- trigger:
- if arg 1 is set:
- if {_pedido.%player%.%arg 1%} is true:
- send "&6&lTPA: &9%player% &7aceitou seu pedido de TPA, aguarde 3 segundos!" to arg 1
- send "&6&lTPA: &7Você aceitou o pedido de tpa de &9%arg 1%"
- wait 3 seconds
- set {_pedido.%player%.%arg 1%} to false
- teleport arg 1 to player
- stop
- else:
- send "&6&lTPA: &7Você não tem um pedido de tpa pendente de &9%arg 1%&7!"
- stop
- else:
- send "&6&lTPA: &7Digite o nome de um jogador."
- stop
- command /tpnegar [<onlineplayer>]:
- trigger:
- if arg 1 is set:
- if {_pedido.%player%.%arg 1%} is true:
- send "&6&lTPA: &7Você negou o pedido de tpa de &9%arg 1%&7." to player
- send "&6&lTPA: &9%player% &7negou o seu pedido de tpa." to arg 1
- set {_pedido.%player%.%arg 1%} to false
- stop
- else:
- send "&6&lTPA: &7Você não tem um pedido de tpa pendente de &9%arg 1%&7."
- stop
- else:
- send "&6&lTPA: &7Digite o nome de um jogador."
- command /tpatoggle:
- trigger:
- if arg 1 is set:
- open chest with 3 row named "&6&lTPATOGGLE" to player]
- wait 5 tick
- format slot 11 of player with a wool named "&a&lATIVAR" with lore "&aClique aqui para ativar seu TPA" to close then run "make console execute command "/tpaativar %player%"]"
- format slot 13 of player with a wool named "&c&lDESATIVAR" with lore "&cClique aqui para desativar seu TPA" to close then run "make console execute command "/tpadesativar %player%"]"
- command /tpativar [<arg 1>]:
- executable by: console
- trigger:
- set {tpatoggle.%arg 1%::*} to false
- send "&6&lTPA: &7Você ativou seu TPA!"
- stop
- command /tpdesativar [<arg 1>]:
- executable by: console
- trigger:
- set {tpatoggle.%arg 1%::*} to true
- send "&6&lTPA: &7Você desativou seu TPA!"
- stop
- on join:
- set {tpatoggle:%player%::*} to false
- on disconnect:
- delete {tpatoggle.%player%::*}
Advertisement
Add Comment
Please, Sign In to add comment