Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /prender [<player>] [<integer>] [<integer>] [<text>]:
- trigger:
- if player has permission "Prender.usar":
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if arg 4 is set:
- if {Jaulas::%arg 2%} is set:
- if arg 2 < 16:
- teleport arg 1 to {Jaula.location::%arg 2%}
- set {Motivo.Prisao::%arg 1%} to arg 4
- set {Jaula.Preso::%arg 1%} to arg 2
- set {Temp.Preso::%arg 1%} to arg 3
- set {Prisao.CMD::%arg 1%} to true
- apply potion of Slowness to the player for 999 days
- apply Slowness 10 to the player
- loop arg 3 times:
- wait 1 minute
- if {Prisao.CMD::%arg 1%} is true:
- teleport arg 1 to {Saida.Prisao}
- clear {Motivo.Prisao::%arg 1%}
- clear {Jaula.Preso::%arg 1%}
- clear {Temp.Preso::%arg 1%}
- remove arg 1 from {Prisao.CMD::*}
- remove Slowness from the arg 1
- set {Prisao.CMD::%arg 1%} to false
- else:
- send "&8[Prisao]&7Limite de jaulas e: 16 jaulas."
- else:
- send "&8[Prisao]&7Esta jaula nao existe!"
- else:
- send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
- else:
- send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
- else:
- send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
- else:
- send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
- else:
- send "&8[Prisao]&cVoce nao tem permissao para usar este comando!"
- command /jaula [<text>] [<player>]:
- trigger:
- if player has permission "JaulaPlayer.info":
- if arg 1 is set:
- if arg 2 is set:
- send "&8[Prisao]&c Motivo: %{Motivo.Prisao::%arg 2%}%"
- send "&8[Prisao]&c jaula: %{Jaula.Preso::%arg 2%}%"
- send "&8[Prisao]&c Tempo: %{Temp.Preso::%arg 2%}%"
- else:
- send "&8[Prisao]&c Comando incorreto, use /jaula info <player>."
- else:
- send "&8[Prisao]&c Comando incorreto, use /jaula info <player>."
- else:
- send "&8[Prisao]&c Você nao tem permissao para usar este comando!"
- command /desprender [<player>]:
- trigger:
- if player has permission "Desprender.usa":
- if arg 1 is set:
- if {Prisao.CMD::%arg 1%} is true:
- teleport arg 1 to {Saida.Prisao}
- clear {Motivo.Prisao::%arg 1%}
- clear {Jaula.Preso::%arg 1%}
- clear {Temp.Preso::%arg 1%}
- remove arg 1 from {Prisao.CMD::*}
- remove Slowness from the arg 1
- set {Prisao.CMD::%arg 1%} to false
- else:
- send "&8[Prisao]&cEste player nao esta preso!"
- else:
- send "&8[Prisao]&7Comando incorreto, use /desprender <player>."
- else:
- send "&8[Prisao]&7Voce nao tem permissao para usar este comando!"
- command /setjaula [<integer>]:
- trigger:
- if player has permission "Setjaula.usar":
- if arg 1 is set:
- if arg 1 < 16:
- set {Jaula.location::%arg 1%} to location of player
- set {Jaulas::%arg 1%} to arg 1
- send "&8[Prisao]&7Jaula %arg 1% setada com sucesso!"
- else:
- send "&8[Prisao]&7Limite de jaulas e: 16 jaulas."
- else:
- send "&8[Prisao]&7Comando incorreto, use /setjaula <numero>"
- else:
- send "&8[Prisao]&7Este comando e para apenas membros da staff."
- command /PrisaoSaida:
- trigger:
- if player has permission "Setsaida.usar":
- set {Saida.Prisao} to location of player
- send "&8[Prisao]&7Saida da Prisao setada com sucesso!"
- else:
- send "&8[Prisao]&7Voce nao tem permissao para usar este comando!"
Add Comment
Please, Sign In to add comment