Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # Prefixo das mensagens
- P: &6[&9&lBC&6]
- # Inventário deve estar vazio? #! True = Sim | False = Não !#
- InventárioVazio: true
- # Regiao do WorldGuard onde esta a arena chain
- Regiao: chain
- command /chain [<text>]:
- trigger:
- if arg 1 is set:
- if arg 1 is "setspawn":
- if player has permission "Chain.set.*":
- send "{@P} &bSpawn marcado!"
- set {Chain.Local} to location of player
- else:
- send "{@P} &cVocê não tem permissão para utilizar este comando."
- if arg 1 is "setsaida":
- if player has permission "Chain.set.*":
- send "{@P} &bSaida marcada!"
- set {Chain.Saida} to location of player
- else:
- send "{@P} &CVocê não tem permissão para utilziar este comando."
- if arg 1 is "entrar":
- if {@InventárioVazio} is true:
- loop items in player's inventory:
- add loop-item to {_temporary::*}
- if {_temporary::*} is set:
- send "{@P} &cVoce precisa envaziar o inventario antes de entrar."
- stop
- else:
- teleport player to {Chain.Local}
- send "{@P} &aVocê entrou na arena chain."
- broadcast "&6[&9&lBC&6] &a%player% entrou no chain"
- wait 2 tick
- equip player with all Chainmail armour
- give 1 iron sword to player
- give 2 enchanted golden apple to player
- give 1 bow to player
- give 10 golden apple to player
- give 10 arrow to player
- else:
- teleport player to {Chain.Local}
- send "{@P} &aVocê entrou na arena chain"
- if arg 1 is "sair":
- send "{@P} &cVocê saiu da arena chain."
- clear player's inventory
- teleport player to {Chain.Saida}
- else:
- send "&eArgumento inválido."
- if player has permission "Chat.admin":
- send ""
- send "&c/chain setspawn - marque o spawn do chain"
- send "&c/chain setsaida - marque a saida do chain "
- send "&c/chain sair - saia do chain"
- send "&c/chain entrar - entre no chain"
- send ""
- else:
- send ""
- send "&c/chain entrar - entre no chain"
- send "&c/chain sair - saia do chain"
- send ""
- on join:
- if "%region at player%" contain "{@Regiao}":
- clear player's inventory
- teleport player to {Chain.Saida}
- send "{@P} &cVocê saiu da arena chain."
- on region leave:
- if "%region%" is "{@Regiao}":
- clear player's inventory
- send "{@P} &cVocê saiu da arena chain."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement