Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.77 KB | None | 0 0
  1. command /vagt [<text>] [<player>]:
  2. permission: vagt
  3. permission message: &cFejl! &7Du er ikke ansat som vagt!
  4. trigger:
  5. if arg-1 is not set:
  6. set {_skull} to player's skull
  7. wait 5 ticks
  8. open chest with 5 rows named "&9&L VAGT MENU" to player
  9. wait 1 tick
  10. format slot 0 of player with blue stained glass pane named " " to be unstealable
  11. format slot 1 of player with blue stained glass pane named " " to be unstealable
  12. format slot 2 of player with blue stained glass pane named " " to be unstealable
  13. format slot 3 of player with blue stained glass pane named " " to be unstealable
  14. format slot 4 of player with blue stained glass pane named " " to be unstealable
  15. format slot 5 of player with blue stained glass pane named " " to be unstealable
  16. format slot 6 of player with blue stained glass pane named " " to be unstealable
  17. format slot 7 of player with blue stained glass pane named " " to be unstealable
  18. format slot 8 of player with blue stained glass pane named " " to be unstealable
  19. wait 5 ticks
  20. format slot 36 of player with blue stained glass pane named " " to be unstealable
  21. format slot 37 of player with blue stained glass pane named " " to be unstealable
  22. format slot 38 of player with blue stained glass pane named " " to be unstealable
  23. format slot 39 of player with blue stained glass pane named " " to be unstealable
  24. format slot 40 of player with blue stained glass pane named " " to be unstealable
  25. format slot 41 of player with blue stained glass pane named " " to be unstealable
  26. format slot 42 of player with blue stained glass pane named " " to be unstealable
  27. format slot 43 of player with blue stained glass pane named " " to be unstealable
  28. format slot 44 of player with blue stained glass pane named " " to be unstealable
  29. format slot 19 of player with golden apple:1 named "&3&nBUFFS" with lore " ||&7Klik for at tage dine buffs" to close then run [make player execute command "/vagt buff"]
  30. format slot 21 of player with compass named "&3&nWARP" with lore " ||&7Klik for at warpe til andre afdelinger" to close then run [make player execute command "/vagt warp"]
  31. format slot 23 of player with golden ingot named "&3&nLØN" with lore " ||&7Klik for at se din løn" to close then run [make player execute command "/vagt løn"]
  32. format slot 25 of player with {_skull} named "&3&nSTATS" with lore " ||&7Dine stats:||&7||&7Dræbte: &c%{vagt.kills.%player%}%||&7Døde: &c%{vagt.døde.%player%}%||&7Brød samlet: &c%{vagtstats.brød.%player%}%" to close then run [make player execute command "/vagt stats"]
  33. if arg-1 is "buff":
  34. apply swiftness 2 to player for 999 days
  35. apply strength 2 to player for 999 days
  36. apply absorption 2 to player for 999 days
  37. send "&aSuccess! &7Du modtaget dine buffs"
  38. if arg-1 is "warp":
  39. wait 5 ticks
  40. open chest with 5 rows named "&9&L VAGT WARP" to player
  41. wait 1 tick
  42. format slot 0 of player with blue stained glass pane named " " to be unstealable
  43. format slot 1 of player with blue stained glass pane named " " to be unstealable
  44. format slot 2 of player with blue stained glass pane named " " to be unstealable
  45. format slot 3 of player with blue stained glass pane named " " to be unstealable
  46. format slot 4 of player with blue stained glass pane named " " to be unstealable
  47. format slot 5 of player with blue stained glass pane named " " to be unstealable
  48. format slot 6 of player with blue stained glass pane named " " to be unstealable
  49. format slot 7 of player with blue stained glass pane named " " to be unstealable
  50. format slot 8 of player with blue stained glass pane named " " to be unstealable
  51. wait 5 ticks
  52. format slot 36 of player with blue stained glass pane named " " to be unstealable
  53. format slot 37 of player with blue stained glass pane named " " to be unstealable
  54. format slot 38 of player with blue stained glass pane named " " to be unstealable
  55. format slot 39 of player with blue stained glass pane named " " to be unstealable
  56. format slot 40 of player with blue stained glass pane named " " to be unstealable
  57. format slot 41 of player with blue stained glass pane named " " to be unstealable
  58. format slot 42 of player with blue stained glass pane named " " to be unstealable
  59. format slot 43 of player with blue stained glass pane named " " to be unstealable
  60. format slot 44 of player with blue stained glass pane named " " to be unstealable
  61. format slot 20 of player with green stained glass pane named "&3&nWARP C" with lore " ||&7Klik for at warpe til C-vagtstue" to close then run [make console execute command "/warp cvagt %player%"]
  62. if player have permission "C.Vagt":
  63. format slot 22 of player with red stained glass pane named "&c&nINGEN ADGANG!" with lore " ||&7Du har ikke adgang til B" to be unstealable
  64. if player have permission "A.Vagt" or "B.Vagt":
  65. format slot 22 of player with green stained glass pane named "&3&nWARP B" with lore " ||&7Klik for at warpe til B-vagtstue" to close then run [make console execute command "/warp bvagt %player%"]
  66. if player have permission "B.Vagt" or "C.Vagt":
  67. format slot 24 of player with red stained glass pane named "&c&nINGEN ADGANG" with lore " ||&7Du har ikke adgang til A" to be unstealable
  68. if player have permission "A.Vagt":
  69. format slot 24 of player with green stained glass pane named "&3&nWARP A" with lore " ||&7Klik for at warp til A-vagtstue" to close then run [make console execute command "/warp avagt %player%"]
  70.  
  71. if arg-1 is "løn":
  72. send "&m----|---- &9 &lLØN &f&m----|----"
  73. send ""
  74. send "&7Din løn: &9%{vagtløn.%player%}%"
  75. send "&7Modtager løn om: &9%{vagtløn.tid.%player%} - {vagtløn.tid.minutter.%player%}% minutter"
  76. send ""
  77. send "&m----|---- &9 &lLØN &f&m----|----"
  78.  
  79. if arg-1 is "stats":
  80. wait 5 ticks
  81. open chest with 5 rows named "&9&L VAGT STATS" to player
  82. wait 1 tick
  83. format slot 0 of player with blue stained glass pane named " " to be unstealable
  84. format slot 1 of player with blue stained glass pane named " " to be unstealable
  85. format slot 2 of player with blue stained glass pane named " " to be unstealable
  86. format slot 3 of player with blue stained glass pane named " " to be unstealable
  87. format slot 4 of player with blue stained glass pane named " " to be unstealable
  88. format slot 5 of player with blue stained glass pane named " " to be unstealable
  89. format slot 6 of player with blue stained glass pane named " " to be unstealable
  90. format slot 7 of player with blue stained glass pane named " " to be unstealable
  91. format slot 8 of player with blue stained glass pane named " " to be unstealable
  92. wait 5 ticks
  93. format slot 36 of player with blue stained glass pane named " " to be unstealable
  94. format slot 37 of player with blue stained glass pane named " " to be unstealable
  95. format slot 38 of player with blue stained glass pane named " " to be unstealable
  96. format slot 39 of player with blue stained glass pane named " " to be unstealable
  97. format slot 40 of player with blue stained glass pane named " " to be unstealable
  98. format slot 41 of player with blue stained glass pane named " " to be unstealable
  99. format slot 42 of player with blue stained glass pane named " " to be unstealable
  100. format slot 43 of player with blue stained glass pane named " " to be unstealable
  101. format slot 44 of player with blue stained glass pane named " " to be unstealable
  102. set {_vagter} to 9
  103. loop all players:
  104. if loop-player have permission "vagt":
  105. format slot {_vagter} of player with skull of loop-player named "&3&n%loop-player%" with lore " ||&7Vagt stats:||&7 ||&7Dræbte: %{vagt.kills.%loop-player%}%||&7Døde: %{vagt.døde.%loop-player%}%||&7Brød samlet: %{vagtstats.brød.%loop-player%}%" to be unstealable
  106. add 1 to {_vagter}
  107. on pickup:
  108. if player has permission "vagt":
  109. if event-item is bread:
  110. add 1 to {vagtstats.brød.%player%}
  111.  
  112. on join:
  113. loop all players:
  114. if loop-player have permission "vagt":
  115. if loop-player have permission "C.Vagt":
  116. set {vagtløn.%loop-player%} to 1000
  117. else if loop-player have permission "B.Vagt":
  118. set {vagtløn.%loop-player%} to 1500
  119. else if loop-player have permission "A.Vagt":
  120. set {vagtløn.%loop-player%} to 3000
  121. set {vagtløn.tid.%loop-player%} to 45
  122. if {vagtløn.tid.minutter.%loop-player%} is more than {vagtløn.tid.%loop-player%}:
  123. set {vagtløn.tid.minutter} to 0
  124. if {vagt.kills.%player%} is not set:
  125. set {vagt.kills.%player%} to 0
  126. if {vagt.døde.%player%} is not set:
  127. set {vagt.døde.%player%} to 0
  128. if {vagtstats.brød.%player%} is not set:
  129. set {vagtstats.brød.%player%} to 0
  130. if {vagtstats.løn.gange.%player%} is not set:
  131. set {vagtstats.løn.gange.%player%} to 0
  132. if {vagtchat.%player%} is not set:
  133. set {vagtchat.%player%} to true
  134.  
  135.  
  136.  
  137. Every 1 second in "world":
  138. loop all players:
  139. if loop-player have permission "vagt":
  140. add 1 to {vagtløn.tid.sekunder.%loop-player%}
  141. if {vagtløn.tid.sekunder.%loop-player%} is 60:
  142. add 1 to {vagtløn.tid.minutter.%loop-player%}
  143. set {vagtløn.tid.sekunder.%loop-player%} to 0
  144. if {vagtløn.tid.minutter.%loop-player%} is 45:
  145. set {vagtløn.tid.minutter.%loop-player%} to 0
  146. add 1 to {vagtstats.løn.gange.%loop-player%}
  147. send "&9&lVAGT &8- &7Du modtog din løn på %{vagtløn.%loop-player%}%" to loop-player
  148. add {vagtløn.%loop-player%} to loop-player's balance
  149.  
  150. command /vagtadmin [<text>] [<offline player>] [<integer>]:
  151. permission: vagt.admin
  152. permission message: &cFejl! &7Du er ikke vagt ansvarlig!
  153. trigger:
  154. if arg-1 is not set:
  155. send "&m------------------ &9 &lVAGT &f&m------------------ "
  156. send ""
  157. send "&9/vagtadmin ansæt spiller &8| &7Ansæt en vagt"
  158. send "&9/vagtadmin fyr spiller &8| &7Fyr en vagt"
  159. send "&9/vagtadmin løn spiller beløb &8| &7Ændre en vagts løn"
  160. send ""
  161. send "&m------------------ &9 &LADMIN &f&m------------------ "
  162.  
  163. if arg-1 is "ansæt":
  164. if arg-2 is set:
  165. send "&9&lVAGT &8- &7Du ansatte &a%arg-2% &7som vagt"
  166. execute console command "/manuadd %arg-2% C-Vagt"
  167. send "&9&l VAGT &8- &7Du blev ansat som vagt" to arg-2
  168. set arg-2's balance to 0
  169. clear arg-2's inventory
  170. make player execute command "/vagtkit"
  171. else if arg-2 is not set:
  172. send "&cFejl! &7Korrekt brug &a/vagtadmin ansæt (spiller)"
  173. if arg-1 is "fyr":
  174. if arg-2 is set:
  175. send "&9&lVAGT &8- &7Du fyrede &c%arg-2%"
  176. execute console command "manuadd %arg-2% default"
  177. send "&9&lVAGT &8- &7Du er blevet &cfyret" to arg-2
  178. clear arg-2's inventory
  179. set arg-2's balance to 0
  180. delete {vagtløn.%arg-2%}
  181. delete {vagtstats.vagtløn.gange.%arg-2%}
  182. delete {vagt.kills.%arg-2%}
  183. delete {vagt.døde.%arg-2%}
  184. delete {vagtstats.brød.%arg-2%}
  185. if arg-1 is "løn":
  186. if arg-2 is set:
  187. if arg-3 is set:
  188. set {vagtløn.%arg-2%} to arg-3
  189. send "&9&lVAGT &8- &7Din nye løn er &a%{vagtløn.%arg-2%}%" to arg-2
  190. send "&9&lVAGT &8- &7Du ændrede &a%arg-2%'s &7løn til &a%{vagtløn.%arg-2%}%"
  191. else:
  192. send "&9&lVAGT &8- &7Indtast en løn"
  193. else:
  194. send "&9&lVAGT &8- &7Indtats en spiller, og en løn"
  195.  
  196. command /vagtchat [<text>]:
  197. aliases: vc, vagtc, cv
  198. permission: vagt
  199. trigger:
  200. if arg-1 is not set:
  201. send "&m------------------ &9 &lVAGTCHAT &f&m------------------ "
  202. send ""
  203. send "&9/vagtchat besked &8| &7Send en besked i vagtchatten"
  204. send "&9/vagtchat on/til &8| &7Slå vagtchatten til"
  205. send "&9/vagtchat off/fra &8| &7Slå vagtchatten fra"
  206. send "&9Aliases &8| &7/vc, /vagtc eller /cv"
  207. send ""
  208. send "&m------------------ &9 &lVAGTCHAT &f&m------------------ "
  209.  
  210. if arg-1 is "on" or "til":
  211. set {vagtchat.%player%} to true
  212. send "&9VAGTCHAT&8 » &7Din vagt chat er slået &atil"
  213. stop
  214. if arg-1 is "off" or "fra":
  215. set {vagtchat.%player%} to false
  216. send "&9VAGTCHAT&8 » &7Din vagt chat er slået &cfra"
  217. stop
  218. if arg-1 is set:
  219. set {_prefix} to "%colored player's prefix%"
  220.  
  221. loop all players:
  222. if loop-player have permission "vagt":
  223. if {vagtchat.%player%} is true:
  224. send "&9VAGTCHAT&8 » %{_prefix}%&7%player%: &f%arg-1%" to loop-player
  225.  
  226. command /straf [<offline player>] [<text>]:
  227. aliases: ej, iso, jail
  228. permission: vagt
  229. trigger:
  230. if arg-1 is not set:
  231. send "&m------------------ &9 &lVAGTSTRAF &f&m------------------ "
  232. send ""
  233. send "&9/straf spiller grund &8| &7Jail en spiller"
  234. send "&9/straf spiller fjern &8| &7Unjail en spiller"
  235. send "&9/straf grunde &8| &7Slå vagtchatten fra"
  236. send "&9/straf stats &8| &7Se dine stats"
  237. send "&9Aliases &8| &7/ej, /iso eller /jail"
  238. send ""
  239. send "&m------------------ &9 &lVAGTSTRAF &f&m------------------ "
  240.  
  241. if arg-1 is "grunde":
  242. if player have permission "vagt":
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement