Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {chain.entrou.%player%} = false
- options:
- prefix: &6(sChain) &e
- capacete: chainmail helmet
- peitoral: chainmail chestplate
- calca: chainmail leggings
- bota: chainmail boots
- espada: stone sword
- quantidademaca: 8
- quantidadecap: 2
- command /chain [<text>]:
- trigger:
- if arg 1 is set:
- if arg 1 is "entrar" or "join":
- if {chain.entrada} is set:
- if {chain.entrou.%player%} is false:
- loop items in player's inventory:
- add 1 to {temitens.chain.%player%}
- if {temitens.chain.%player%} is set:
- send "{@prefix}Você precisa estar com o inventário vazio para entrar na chain."
- delete {temitens.chain.%player%}
- stop
- remove haste from player
- remove invisibility from player
- remove strength from player
- remove slowness from player
- remove jump boost from player
- remove speed from player
- remove nausea from player
- remove regeneration from player
- remove resistance from player
- clear the player's inventory
- add player to {entrouchain::*}
- teleport player to {chain.entrada}
- clear the player's inventory
- send "{@prefix}O jogador %player% entrou na chain." to {entrouchain::*}
- set the player's helmet to {@capacete}
- set the player's chestplate to {@peitoral}
- set the player's leggings to {@calca}
- set the player's boots to {@bota}
- give {@espada} to player
- give {@quantidademaca} golden apple to player
- give {@quantidadecap} golden apple:1 to player
- set {chain.entrou.%player%} to true
- stop
- else:
- send "{@prefix}Você já está na chain."
- stop
- else:
- send "{@prefix}A entrada da arena chain não está setada, comunique a equipe do servidor sobre isso."
- stop
- if arg 1 is "sair" or "leave":
- if {chain.saida} is set:
- if {chain.entrou.%player%} is true:
- set {chain.entrou.%player%} to false
- send "{@prefix}O jogador %player% saiu da chain." to {entrouchain::*}
- remove player from {entrouchain::*}
- clear the player's inventory
- teleport player to {chain.saida}
- stop
- else:
- send "{@prefix}Você não está na chain."
- stop
- else:
- send "{@prefix}A saida da arena chain não está setada, comunique a equipe do servidor sobre isso."
- stop
- if arg 1 is "entrada":
- if player has permission "chain.staff":
- set {chain.entrada} to player's location
- send "{@prefix}A entrada da chain foi setada."
- stop
- else:
- send "{@prefix}Você não tem permissão para executar este comando."
- stop
- if arg 1 is "saida":
- if player has permission "chain.staff":
- set {chain.saida} to player's location
- send "{@prefix}A saida da chain foi setada."
- stop
- else:
- send "{@prefix}Você não tem permissão para executar este comando."
- stop
- if arg 1 is not "saida" or "entrada" or "join" or "entrar" or "sair" or "leave":
- if player has permission "chain.staff":
- send " "
- send "{@prefix}&f- &eComandos"
- send "&6/chain entrar &f-&e Utilizado para entrar na arena."
- send "&6/chain sair &f-&e Utilizado para sair da arena."
- send " "
- send "&6/chain entrada&f -&e Utilizado para marcar a entrada da chain."
- send "&6/chain saida&f -&e Utilizado para marcar a saida da chain."
- send " "
- stop
- else:
- send " "
- send "{@prefix}&f- &eComandos"
- send "&6/chain entrar &f-&e Utilizado para entrar na arena."
- send "&6/chain sair &f-&e Utilizado para sair da arena."
- send " "
- stop
- else:
- if player has permission "chain.staff":
- send " "
- send "{@prefix}&f- &eComandos"
- send "&6/chain entrar &f-&e Utilizado para entrar na arena."
- send "&6/chain sair &f-&e Utilizado para sair da arena."
- send " "
- send "&6/chain entrada&f -&e Utilizado para marcar a entrada da chain."
- send "&6/chain saida&f -&e Utilizado para marcar a saida da chain."
- send " "
- stop
- else:
- send " "
- send "{@prefix}&f- &eComandos"
- send "&6/chain entrar &f-&e Utilizado para entrar na arena."
- send "&6/chain sair &f-&e Utilizado para sair da arena."
- send " "
- stop
- on death:
- if {chain.entrou.%player%} is true:
- set {chain.entrou.%player%} to false
- send "{@prefix}O jogador %player% morreu." to {entrouchain::*}
- remove player from {entrouchain::*}
- on quit:
- if {chain.entrou.%player%} is true:
- set {chain.entrou.%player%} to false
- send "{@prefix}O jogador %player% deslogou." to {entrouchain::*}
- remove player from {entrouchain::*}
Add Comment
Please, Sign In to add comment