Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.92 KB | None | 0 0
  1. variables:
  2. {jailed::%player%} = false
  3.  
  4. command /setjail:
  5. permission: skript.setjail
  6. trigger:
  7. send "&7&oYou have set the jail location."
  8. set {jailloc} to player's location
  9.  
  10. command /jail [<offlineplayer>]:
  11. permission: skript.jail
  12. permission message: "&c&l[!] &cPlease use: /jail (player)"
  13. trigger:
  14. if arg-1 is not set:
  15. send "&7&oPlease put in a player to send to jail!"
  16. if arg-1 is set:
  17. wait 3 ticks
  18. open chest with 3 rows named "&6&lJail &8- &7%arg-1%" to player
  19. format slot 13 of player with paper named "&eJail." with lore "&7", "&7&oOpen a GUI that allows u to set time." and "&7" to close then run [execute player command "jailtime %arg 1%"]
  20. format slot 1 of player with black stained glass pane named "&7" to close
  21. format slot 2 of player with black stained glass pane named "&7" to close
  22. format slot 3 of player with black stained glass pane named "&7" to close
  23. format slot 4 of player with black stained glass pane named "&7" to close
  24. format slot 5 of player with black stained glass pane named "&7" to close
  25. format slot 6 of player with black stained glass pane named "&7" to close
  26. format slot 7 of player with black stained glass pane named "&7" to close
  27. format slot 8 of player with black stained glass pane named "&7" to close
  28. format slot 9 of player with black stained glass pane named "&7" to close
  29. format slot 10 of player with black stained glass pane named "&7" to close
  30. format slot 11 of player with black stained glass pane named "&7" to close
  31. format slot 12 of player with black stained glass pane named "&7" to close
  32. format slot 14 of player with black stained glass pane named "&7" to close
  33. format slot 15 of player with black stained glass pane named "&7" to close
  34. format slot 16 of player with black stained glass pane named "&7" to close
  35. format slot 17 of player with black stained glass pane named "&7" to close
  36. format slot 18 of player with black stained glass pane named "&7" to close
  37. format slot 19 of player with black stained glass pane named "&7" to close
  38. format slot 20 of player with black stained glass pane named "&7" to close
  39. format slot 21 of player with black stained glass pane named "&7" to close
  40. format slot 22 of player with black stained glass pane named "&7" to close
  41. format slot 23 of player with black stained glass pane named "&7" to close
  42. format slot 24 of player with black stained glass pane named "&7" to close
  43. format slot 25 of player with black stained glass pane named "&7" to close
  44. format slot 0 of player with black stained glass pane named "&7" to close
  45. format slot 26 of player with black stained glass pane named "&7" to close
  46.  
  47.  
  48. command /jailtime [<offlineplayer>]:
  49. permission: skript.jail
  50. permission message: "&c&l[!] &cPlease use: /jail (player)"
  51. trigger:
  52. if arg-1 is not set:
  53. send "&7&oPlease put in a player to send to jail!"
  54. if arg-1 is set:
  55. wait 3 ticks
  56. open chest with 3 rows named "&6&lJail &eTime &8- &7%arg-1%" to player
  57. format slot 10 of player with green concrete named "&eCaught in any Vault." with lore "&7", "&7This will jail the player for &64 minutes." and "&7" to close then run [execute player command "vault %arg 1%"]
  58. format slot 12 of player with green concrete named "&eAttacking Officer, player's." with lore "&7", "&7This will jail the player for &62 minutes." and "&7" to close then run [execute player command "punchs %arg 1%"]
  59. format slot 14 of player with green concrete named "&eCaught in illegal rooms." with lore "&7", "&7This will jail the player for &63 minutes." and "&7" to close then run [execute player command "rooms %arg 1%"]
  60. format slot 16 of player with green concrete named "&eCaught with Contraband." with lore "&7", "&7This will jail the player for &64 minutes." and "&7" to close then run [execute player command "contraband %arg 1%"]
  61. format slot 1 of player with black stained glass pane named "&7" to close
  62. format slot 13 of player with black stained glass pane named "&7" to close
  63. format slot 2 of player with black stained glass pane named "&7" to close
  64. format slot 3 of player with black stained glass pane named "&7" to close
  65. format slot 4 of player with black stained glass pane named "&7" to close
  66. format slot 5 of player with black stained glass pane named "&7" to close
  67. format slot 6 of player with black stained glass pane named "&7" to close
  68. format slot 7 of player with black stained glass pane named "&7" to close
  69. format slot 8 of player with black stained glass pane named "&7" to close
  70. format slot 9 of player with black stained glass pane named "&7" to close
  71. format slot 15 of player with black stained glass pane named "&7" to close
  72. format slot 11 of player with black stained glass pane named "&7" to close
  73. format slot 15 of player with black stained glass pane named "&7" to close
  74. format slot 17 of player with black stained glass pane named "&7" to close
  75. format slot 18 of player with black stained glass pane named "&7" to close
  76. format slot 19 of player with black stained glass pane named "&7" to close
  77. format slot 20 of player with black stained glass pane named "&7" to close
  78. format slot 21 of player with black stained glass pane named "&7" to close
  79. format slot 22 of player with black stained glass pane named "&7" to close
  80. format slot 23 of player with black stained glass pane named "&7" to close
  81. format slot 24 of player with black stained glass pane named "&7" to close
  82. format slot 25 of player with black stained glass pane named "&7" to close
  83. format slot 0 of player with black stained glass pane named "&7" to close
  84. format slot 26 of player with black stained glass pane named "&7" to close
  85.  
  86. on command:
  87. if {jailed::%player%} is true:
  88. cancel event
  89.  
  90. command /contraband [<offlineplayer>]:
  91. permission: skript.jail
  92. permission message: "&c&l[!] &cPlease use: /jail (player)"
  93. trigger:
  94. if arg-1 is not set:
  95. send "fail"
  96. if arg-1 is set:
  97. send "&7&oYou have been send to jail for &6Having a Contraband. &e( 4 minutes. )" to arg-1
  98. send "&7&oYou have jailed &e%arg-1% &7&ofor &6Having a Contraband. &e( 4 minutes. )"
  99. teleport arg-1 to {jailloc}
  100. set {jailed::%arg-1%} to true
  101. wait 4 minutes
  102. set {jailed::%arg-1%} to false
  103. send "&7&oYou are no longer in jail. &e/spawn" to arg-1
  104.  
  105. command /rooms [<offlineplayer>]:
  106. permission: skript.jail
  107. permission message: "&c&l[!] &cPlease use: /jail (player)"
  108. trigger:
  109. if arg-1 is not set:
  110. send "fail"
  111. if arg-1 is set:
  112. send "&7&oYou have been send to jail for &6Caught in illegal area. &e( 3 minutes. )" to arg-1
  113. send "&7&oYou have jailed &e%arg-1% &7&ofor &6&6Caught in illegal area. &e( 3 minutes. )"
  114. teleport arg-1 to {jailloc}
  115. set {jailed::%arg-1%} to true
  116. wait 3 minutes
  117. set {jailed::%arg-1%} to false
  118. send "&7&oYou are no longer in jail. &e/spawn" to arg-1
  119.  
  120. command /punchs [<offlineplayer>]:
  121. permission: skript.jail
  122. permission message: "&c&l[!] &cPlease use: /jail (player)"
  123. trigger:
  124. if arg-1 is not set:
  125. send "fail"
  126. if arg-1 is set:
  127. send "&7&oYou have been send to jail for &6Punching Officer, player's. &e( 2 minutes. )" to arg-1
  128. send "&7&oYou have jailed &e%arg-1% &7&ofor &6Punching Officer, player's. &e( 2 minutes. )"
  129. teleport arg-1 to {jailloc}
  130. set {jailed::%arg-1%} to true
  131. wait 2 minutes
  132. set {jailed::%arg-1%} to false
  133. send "&7&oYou are no longer in jail. &e/spawn" to arg-1
  134.  
  135. command /vault [<offlineplayer>]:
  136. permission: skript.jail
  137. permission message: "&c&l[!] &cPlease use: /jail (player)"
  138. trigger:
  139. if arg-1 is not set:
  140. send "fail"
  141. if arg-1 is set:
  142. send "&7&oYou have been send to jail for &6Caught in any Vault. &e( 4 minutes. )" to arg-1
  143. send "&7&oYou have jailed &e%arg-1% &7&ofor &6Caught in any Vault. &e( 4 minutes. )"
  144. teleport arg-1 to {jailloc}
  145. set {jailed::%arg-1%} to true
  146. wait 4 minutes
  147. set {jailed::%arg-1%} to false
  148. send "&7&oYou are no longer in jail. &e/spawn" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement