Guest User

Untitled

a guest
Feb 19th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. command /prender [<player>] [<integer>] [<integer>] [<text>]:
  2. trigger:
  3. if player has permission "Prender.usar":
  4. if arg 1 is set:
  5. if arg 2 is set:
  6. if arg 3 is set:
  7. if arg 4 is set:
  8. if {Jaulas::%arg 2%} is set:
  9. if arg 2 < 16:
  10. teleport arg 1 to {Jaula.location::%arg 2%}
  11. set {Motivo.Prisao::%arg 1%} to arg 4
  12. set {Jaula.Preso::%arg 1%} to arg 2
  13. set {Temp.Preso::%arg 1%} to arg 3
  14. set {Prisao.CMD::%arg 1%} to true
  15. apply potion of Slowness to the player for 999 days
  16. apply Slowness 10 to the player
  17. loop arg 3 times:
  18. wait 1 minute
  19. if {Prisao.CMD::%arg 1%} is true:
  20. teleport arg 1 to {Saida.Prisao}
  21. clear {Motivo.Prisao::%arg 1%}
  22. clear {Jaula.Preso::%arg 1%}
  23. clear {Temp.Preso::%arg 1%}
  24. remove arg 1 from {Prisao.CMD::*}
  25. remove Slowness from the arg 1
  26. set {Prisao.CMD::%arg 1%} to false
  27. else:
  28. send "&8[Prisao]&7Limite de jaulas e: 16 jaulas."
  29. else:
  30. send "&8[Prisao]&7Esta jaula nao existe!"
  31. else:
  32. send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
  33. else:
  34. send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
  35. else:
  36. send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
  37. else:
  38. send "&8[Prisao]&7Comando incorreto, use /prender <nick> <jaula> <tempo> <motivo>."
  39. else:
  40. send "&8[Prisao]&cVoce nao tem permissao para usar este comando!"
  41.  
  42. command /jaula [<text>] [<player>]:
  43. trigger:
  44. if player has permission "JaulaPlayer.info":
  45. if arg 1 is set:
  46. if arg 2 is set:
  47. send "&8[Prisao]&c Motivo: %{Motivo.Prisao::%arg 2%}%"
  48. send "&8[Prisao]&c jaula: %{Jaula.Preso::%arg 2%}%"
  49. send "&8[Prisao]&c Tempo: %{Temp.Preso::%arg 2%}%"
  50. else:
  51. send "&8[Prisao]&c Comando incorreto, use /jaula info <player>."
  52. else:
  53. send "&8[Prisao]&c Comando incorreto, use /jaula info <player>."
  54. else:
  55. send "&8[Prisao]&c Você nao tem permissao para usar este comando!"
  56.  
  57. command /desprender [<player>]:
  58. trigger:
  59. if player has permission "Desprender.usa":
  60. if arg 1 is set:
  61. if {Prisao.CMD::%arg 1%} is true:
  62. teleport arg 1 to {Saida.Prisao}
  63. clear {Motivo.Prisao::%arg 1%}
  64. clear {Jaula.Preso::%arg 1%}
  65. clear {Temp.Preso::%arg 1%}
  66. remove arg 1 from {Prisao.CMD::*}
  67. remove Slowness from the arg 1
  68. set {Prisao.CMD::%arg 1%} to false
  69. else:
  70. send "&8[Prisao]&cEste player nao esta preso!"
  71. else:
  72. send "&8[Prisao]&7Comando incorreto, use /desprender <player>."
  73. else:
  74. send "&8[Prisao]&7Voce nao tem permissao para usar este comando!"
  75.  
  76. command /setjaula [<integer>]:
  77. trigger:
  78. if player has permission "Setjaula.usar":
  79. if arg 1 is set:
  80. if arg 1 < 16:
  81. set {Jaula.location::%arg 1%} to location of player
  82. set {Jaulas::%arg 1%} to arg 1
  83. send "&8[Prisao]&7Jaula %arg 1% setada com sucesso!"
  84. else:
  85. send "&8[Prisao]&7Limite de jaulas e: 16 jaulas."
  86. else:
  87. send "&8[Prisao]&7Comando incorreto, use /setjaula <numero>"
  88. else:
  89. send "&8[Prisao]&7Este comando e para apenas membros da staff."
  90.  
  91.  
  92. command /PrisaoSaida:
  93. trigger:
  94. if player has permission "Setsaida.usar":
  95. set {Saida.Prisao} to location of player
  96. send "&8[Prisao]&7Saida da Prisao setada com sucesso!"
  97. else:
  98. send "&8[Prisao]&7Voce nao tem permissao para usar este comando!"
Add Comment
Please, Sign In to add comment