Advertisement
Guest1221

Untitled

Dec 30th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. command /setjail [<text>]:
  2. description: Set the Location of a Jail
  3. permission: admin.setjail
  4. usage: /setjail <jail>
  5. permission message: &cYou Do Not Have Permission To Create A Jail.
  6. trigger:
  7. if arg 1 is not set:
  8. send "You must specify a name for the jail."
  9. stop
  10. if arg 1 is set:
  11. set {jails::%arg 1%} to location of player
  12. send "Jail %arg 1% has been set."
  13. stop
  14.  
  15. command /deljail [<text>]:
  16. description: Delete a Jail
  17. permission: admin.deljail
  18. usage: /deljail(remjail|rmjail) <jail>
  19. permission message: &cYou Do Not Have Permission To Delete Jails.
  20. aliases: /remjail, /rmjail
  21. trigger:
  22. if arg 1 is not set:
  23. send "You must specify a jail to delete."
  24. stop
  25. if arg 1 is set:
  26. loop {jails::*}:
  27. if {jails::%loop-index%} is set:
  28. clear {jails::%arg 1%}
  29. send "Jail %arg 1% has been removed."
  30. stop
  31. else:
  32. send "%arg 1% is not a jail."
  33. stop
  34.  
  35. command /jails:
  36. description: List all Jails
  37. permission: list.jails
  38. usage: /jails
  39. permission message: &cYou Do Not Have Permission To See The Jails.
  40. trigger:
  41. loop {jails::*}:
  42. add loop-index to {_jl::*}
  43. send "The current jails are: %{_jl::*}%"
  44. stop
  45.  
  46. command /togglejail [<player>] [<text>]:
  47. description: Toggle a Player's Jail Status
  48. permission: admin.togglejail
  49. usage: /togglejail(togglejail|unjail|jail) <player> [jail]
  50. permission message: &cYou Do Not Have Permission To Jail.
  51. aliases: /unjail, /jail
  52. trigger:
  53. if arg 1 is not set:
  54. send "You must specify a player to unjail/jail."
  55. stop
  56. if arg 1 is set:
  57. if arg 2 is not set:
  58. if {in.jail::%uuid of arg 1%} is set:
  59. teleport arg 1 to {beforejail::%uuid of arg 1%}
  60. clear {beforejail::%uuid of arg 1%}
  61. clear {in.jail::%uuid of arg 1%}
  62. send "You are no longer jailed." to arg 1
  63. send "%arg 1% is no longer jailed."
  64. stop
  65. else:
  66. send "You must specify a jail in which %arg 1% should be kept."
  67. stop
  68. if arg 2 is set:
  69. if {jails::%arg 2%} is set:
  70. set {beforejail::%uuid of arg 1%} to location of arg 1
  71. teleport player to {jails::%arg 2%}
  72. set {in.jail::%uuid of arg 1%} to 1
  73. send "You are now jailed." to arg 1
  74. send "%arg 1% is now jailed."
  75. stop
  76. else:
  77. send "%arg 2% is not a jail."
  78. stop
  79.  
  80. on damage:
  81. if {in.jail::%uuid of attacker%} is set:
  82. cancel the event
  83. else if {in.jail::%uuid of victim%} is set:
  84. cancel the event
  85.  
  86. on any move:
  87. if {in.jail::%uuid of player%} is set:
  88. cancel the event
  89. stop
  90.  
  91. on mine:
  92. if {in.jail::%uuid of player%} is set:
  93. cancel the event
  94.  
  95. on chat:
  96. if {in.jail::%uuid of player%} is set:
  97. send "You cannot speak while in jail."
  98. cancel the event
  99. stop
  100.  
  101. on click:
  102. if {in.jail::%uuid of player%} is set:
  103. cancel the event
  104. stop
  105.  
  106. on teleport:
  107. if {in.jail::%uuid of player%} is set:
  108. cancel the event
  109.  
  110. on command:
  111. if {in.jail::%uuid of player%} is set:
  112. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement