FlupMC

Untitled

May 27th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.49 KB | None | 0 0
  1. Options:
  2. Bannednavne: "Fuck","Noob","Ingen","None","<none>","Staff","HeadAdmin","Nations","Mod","Moderator","Ejer","Owner","Mor","Fuc","Nigg",".",",","Lort","Server","pik","fisse","dick","dic","*","_","&","-","'","¥","+","?","=","]","[","{","}","(",")","^",":",";","O","@","£","%%","§","/" or "Admin"
  3. p: &6&lTEAM &8» &e
  4. crate: Diamond
  5. cratecaps: DIAMOND
  6. on join:
  7. if {team::%uuid of player%} is set:
  8. set {team::%{team::%player%}%::navn} to {team::%uuid of player%}
  9. if {team::%{team::%uuid of player%}%::kills} is not set:
  10. set {team::%{team::%uuid of player%}%::kills} to 0
  11. if {team::%{team::%uuid of player%}%::death} is not set:
  12. set {team::%{team::%uuid of player%}%::death} to 0
  13. set {navn::%uuid of player%} to "%player%"
  14. set {uuid::%player%} to "%uuid of player%"
  15. command /tc [<text>]:
  16. trigger:
  17. if arg-1 is set:
  18. if {team::%uuid of player%} is set:
  19. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  20. set {_prefix} to "&8[&6Leder&8] &e"
  21. else:
  22. set {_prefix} to "&8[&eMedlem&8] &e"
  23. loop all players:
  24. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  25. message "&8&l[&6&lTeam Chat&8&l]&e %{_prefix}%%player% &8»&e %arg text%." to loop-player
  26. else:
  27. send "{@p}Du skal skrive en besked."
  28.  
  29. Command /team [<text>] [<text>] [<text>]:
  30. Trigger:
  31. If arg-1 is not set:
  32. if {team::%uuid of player%} is not set:
  33. make player execute command "/team hjælp"
  34. stop
  35. if {team::%uuid of player%} is set:
  36. make player execute command "/team start"
  37. stop
  38. If arg-1 is "hjælp":
  39. send "&8&l&m-----------------------------------------"
  40. send ""
  41. send "&6/team hjælp &8| &eViser denne guide."
  42. send "&6/team opret <navn> &8| &eFor at lave et team."
  43. send "&6/team invite <navn> &8| &eFor at invitere en til dit team."
  44. send "&6/team join &8| &eFor at joine et team."
  45. send "&6/team afvis &8| &eFor at afvise en invitation."
  46. if {team::%uuid of player%} is set:
  47. send "&6/team forlad &8| &eFor at forlade et team."
  48. send "&6/team kick <navn> &8| &eFor at smide en ud af dit team."
  49. send "&6/team info <navn> &8| &eViser stats om dit team."
  50. send "&6/team levelup &8| &eLeveler dit team op."
  51. send "&6/team shop &8| &eÅbner team shoppen."
  52. send "&6/team bank <penge> &8| &eSætter penge ind på team kontoen."
  53. send "&6/team ejer <navn> &8| &eGiv dit ejerskam til en anden."
  54. send "&6/tc &8| &eSkriv i team chatten."
  55. send "&6/tk &8| &eÅbner dit teams fæles kiste."
  56. send ""
  57. send "&8&l&m-----------------------------------------"
  58. if arg-1 is "ejer":
  59. if {team::%uuid of player%} is not set:
  60. message "{@p}Du er ikke medlem af et team!"
  61. stop
  62. if arg-2 is set:
  63. set {_arg} to {uuid::%arg-2%}
  64. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  65. if {team::%{_arg}%} is {team::%uuid of player%}:
  66. send "{@p}Du har givet ejerskabet til &6%arg-2%"
  67. set {team::%{team::%uuid of player%}%::ejer} to {_arg}
  68. set {team::%{team::%uuid of player%}%::ejernavn} to "%arg-2%"
  69. send "{@p}&6 %command sender% &ehar givet ejerskabet til &6%arg-2%" to arg 2 parsed as a player
  70. if arg-1 is "chest":
  71. if {team::%uuid of player%} is set:
  72. if {teamv1::%{team::%uuid of player%}%::chest} is not set:
  73. invoke "team.page1" from player
  74. set {teamv1::%{team::%uuid of player%}%::chest} to true
  75. else:
  76. send "{@p}&6 Der er allerede en spiller i kisten"
  77. stop
  78. if {team::%uuid of player%} is not set:
  79. message "{@p}Du er ikke medlem af et team!"
  80. stop
  81. if arg-1 is "levelup":
  82. if {team::%uuid of player%} is set:
  83. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  84. if {team::%{team::%uuid of player%}%::lvl} is 1:
  85. if {team::%{team::%uuid of player%}%::kills} is between 300 and 1000000000000000000000:
  86. set {team::%{team::%uuid of player%}%::lvl} to 2
  87. set {team::%{team::%uuid of player%}%::lvlkills} to 1000
  88. set {team::%{team::%uuid of player%}%::farve} to "&a"
  89. loop all players:
  90. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  91. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a2&e!" to loop-player
  92. execute console command "eco give %loop-player% 500"
  93. else:
  94. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&6300&8)."
  95. else if {team::%{team::%uuid of player%}%::lvl} is 2:
  96. if {team::%{team::%uuid of player%}%::kills} is between 1000 and 1000000000000000000000:
  97. set {team::%{team::%uuid of player%}%::lvl} to 3
  98. set {team::%{team::%uuid of player%}%::lvlkills} to 3000
  99. set {team::%{team::%uuid of player%}%::farve} to "&3"
  100. loop all players:
  101. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  102. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a3&e!" to loop-player
  103. execute console command "eco give %loop-player% 2000"
  104. else:
  105. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&61000&8)."
  106. else if {team::%{team::%uuid of player%}%::lvl} is 3:
  107. if {team::%{team::%uuid of player%}%::kills} is between 3000 and 1000000000000000000000:
  108. set {team::%{team::%uuid of player%}%::lvl} to 4
  109. set {team::%{team::%uuid of player%}%::lvlkills} to 10000
  110. set {team::%{team::%uuid of player%}%::farve} to "&d"
  111. loop all players:
  112. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  113. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a4&e!" to loop-player
  114. execute console command "eco give %loop-player% 2000"
  115. else:
  116. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&63000&8)."
  117. else if {team::%{team::%uuid of player%}%::lvl} is 4:
  118. if {team::%{team::%uuid of player%}%::kills} is between 3000 and 1000000000000000000000:
  119. set {team::%{team::%uuid of player%}%::lvl} to 5
  120. set {team::%{team::%uuid of player%}%::lvlkills} to "MAX"
  121. set {team::%{team::%uuid of player%}%::farve} to "&c"
  122. loop all players:
  123. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  124. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a5&e!" to loop-player
  125. execute console command "eco give %loop-player% 2000"
  126. else:
  127. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&610000&8)."
  128. stop
  129.  
  130. else:
  131. message "{@p}Du skal være ejeren for at levelup dit team :)"
  132. stop
  133. else:
  134. message "{@p}Du er ikke medlem af et team!"
  135. stop
  136.  
  137. If arg-1 is "opret":
  138. if {team::%uuid of player%} is set:
  139. message "{@p}Du er allerede med i team &a%{team::%uuid of player%}% &eog hvis du vil forlade teamet.. &a/team forlad"
  140. stop
  141. Else:
  142. if arg-2 is set:
  143. set {_arg2} to "%arg-2%" parsed as a text
  144. if arg 3 is set:
  145. message "{@p}Der må &4&LIKKE &evære &6mellemrum &ei team navnet."
  146. stop
  147. if length of {_arg2} is between -9999999999999 and 3:
  148. message "{@p}Dit team navn skal være længere end &63 &ebogstaver!"
  149. stop
  150. if length of {_arg2} is above 15:
  151. message "{@p}Dit team navn må &4&LIKKE være længere end &615 &ebogstaver!"
  152. stop
  153. if arg-2 contains {@Bannednavne}:
  154. message "{@p}Dit team må &4&lIKKE &ehedde &6%arg-2%"
  155. stop
  156. if arg-2 do not contain "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "ø", "æ" or "å":
  157. message "{@p}Dit team må &4&LIKKE &ehedde &6%arg-2%"
  158. stop
  159. if {team::%arg-2%} is set:
  160. message "{@p}Der er allerede et team der hedder &6%arg-2%&e."
  161. stop
  162. set {team::%uuid of player%} to "%arg-2%"
  163. set {team::%arg-2%} to "%arg-2%"
  164. set {team::%arg-2%::lvl} to 1
  165. set {team::%arg-2%::lavet} to now
  166. set {team::%arg-2%::lvlkills} to 300
  167. set {team::%arg-2%::maxmem} to 3
  168. set {team::%arg-2%::kills} to 0
  169. set {team::%arg-2%::deaths} to 0
  170. set {team::%arg-2%::bank} to 0
  171. set {team::%arg-2%::points} to 0
  172. set {team::%arg-2%::ejer} to uuid of player
  173. set {team::%arg-2%::ejernavn} to "%player%"
  174. set {team::%arg-2%::mission::1::kills} to 0
  175. set {team::%arg-2%::mission::1} to "igang"
  176. set {team::%arg-2%::mission::2} to "låst"
  177. set {team::%arg-2%::mission::3} to "låst"
  178. set {team::%arg-2%::mission::4} to "låst"
  179. set {team::%arg-2%::mission::5} to "låst"
  180. set {team::%arg-2%::mission::6} to "låst"
  181. set {team::%arg-2%::mission::7} to "låst"
  182. set {team::%arg-2%::mission::8} to "låst"
  183. set {team::%arg-2%::mission::9} to "låst"
  184. set {team::%arg-2%::farve} to "&7"
  185. set {team::%{team::%player%}%::navn} to {team::%uuid of player%}
  186. add "%arg-2%" to {teams::*}
  187. set {navn::%uuid of player%} to "%player%"
  188. set {uuid::%player%} to "%uuid of player%"
  189. add uuid of player to {team::%{team::%uuid of player%}%::medlemmer::*}
  190. message "{@p}Du har lavet et team navngivet &6%arg-2%&e."
  191. stop
  192.  
  193.  
  194. if arg-1 is "forlad":
  195. if {team::%uuid of player%} is not set:
  196. message "{@p}Du er ikke medlem af et team!"
  197. stop
  198. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  199. message "{@p}Du har forladt teamet &6%{team::%uuid of player%}%&e, men fordi du var ejeren, så blev hele teamet slettet! "
  200. delete {team::%{team::%uuid of player%}%::lvlkills}
  201. delete {team::%{team::%uuid of player%}%::lvl}
  202. delete {team::%{team::%uuid of player%}%::kills}
  203. delete {team::%{team::%uuid of player%}%::deaths}
  204. delete {team::%{team::%uuid of player%}%::ejer}
  205. delete {team::%{team::%uuid of player%}%}
  206. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  207. remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
  208. delete {team::%loop-value%}
  209. delete {team::%{team::%loop-value%}%::medlemmer::*}
  210. if {team::%uuid of player%} is set:
  211. message "{@p}&6Der skete en fejl, kontakt en staff."
  212. else:
  213. loop all players:
  214. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  215. message "{@p}&6%player% &ehar forladt teamet." to loop-player
  216. remove uuid of player from {team::%{team::%uuid of player%}%::medlemmer::*}
  217. delete {team::%uuid of player%}
  218. stop
  219.  
  220. if arg 1 is "invite":
  221. if {team::%uuid of player%} is not set:
  222. message "{@p}Du er ikke medlem af et team!"
  223. stop
  224. else:
  225. set {_size} to "%size of {team::%{team::%uuid of player%}%::medlemmer::*}%"
  226. if {team::%{uuid::%arg-2%}%} is set:
  227. message "{@p}&6%arg 2% &eer allerede med i et team."
  228. stop
  229. if {team::%player%::invite} is set:
  230. message "{@p}&6%arg 2% &eer allerede blevet inviteret til et team."
  231. stop
  232. if {_size} is greater or equal to 4:
  233. send "{@p}Du kan max have 3 medlemmer"
  234. stop
  235. set {_player} to "%arg 2%" parsed as a player
  236. set {_playeruuid} to uuid of {_player}
  237. set {_uuidplayer} to "%{_playeruuid}%" parsed as a player
  238. if {_player} is online:
  239. if {team::%{team::%uuid of player%}%::ejer} is not uuid of player:
  240. message "{@p}Du &4&LSKAl &evære &6ejeren &efor at invitere folk."
  241. stop
  242. else:
  243. if arg 2 is not set:
  244. message "{@p}Korrekt brug: &6/team inviter <navn>&e."
  245. stop
  246. else:
  247. if {team::%{_player}%::invite} is set:
  248. message "{@p}&6%arg 2% &eer allerede blevet inviteret til et team, få %{_player}% til at afvise den anden invitation med &6/team afvis&e."
  249. stop
  250. else:
  251. if {team::%{_uuidplayer}%} is set:
  252. message "{@p}&6%{_player}% &eer allerede med i et team."
  253. stop
  254. else:
  255. set {team::%{_player}%::invite} to "%{team::%uuid of player%}%"
  256. message "{@p}Du er blevet inviteret til &6%{team::%uuid of player%}% &eskriv &6/team join &efor at joine teamet, for at afvise invitationen skriv &6/team afvis&e." to {_player}
  257. message "{@p}Du har inviteret &6%{_player}% &etil teamet."
  258. wait 30 seconds
  259. delete {team::%{_player}%::invite}
  260. stop
  261. else:
  262. message "{@p}&6%arg 2% &eer ikke online.... Han/Hun skal være online."
  263.  
  264. if arg-1 is "afvis":
  265. If {team::%player%::invite} is set:
  266. message "{@p}Du har afvist invitationen fra &6%{team::%player%::invite}%&e."
  267. loop all players:
  268. if {team::%{team::%player%::invite}%::ejer} is uuid of loop-player:
  269. message "{@p}&6%player% &ehar afvist invitationen." to loop-player
  270. delete {team::%player%::invite}
  271. stop
  272. else:
  273. message "{@p}Du er ikke blevet inviteret til et team!"
  274. stop
  275.  
  276. if arg 1 is "join":
  277. if {team::%uuid of player%} is set:
  278. message "{@p}Du er allerede med i et team!"
  279. stop
  280. else:
  281. if player's balance is between -0 and -1:
  282. send "{@p}Det koster &a$&2500&e At joine et team :)"
  283. stop
  284. loop {team::%{team::%player%::invite}%::medlemmer::*}:
  285. add 1 to {_medlemmer}
  286. if {_medlemmer} is greater or equal to {team::%{team::%player%::invite}%::maxmem}:
  287. send "&8&l[&e&lMAINTON-TEAM&8&l] &eTeamet har plads til flere."
  288. stop
  289. if {team::%player%::invite} is set:
  290. loop all players:
  291. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  292. send "{@p}&6%player% &ehar joinet teamet." to loop-player
  293. set {team::%uuid of player%} to {team::%player%::invite}
  294. add uuid of player to {team::%{team::%player%::invite}%::medlemmer::*}
  295. message "{@p}Du har joinet teamet &6%{team::%player%::invite}%&e."
  296. set {navn::%uuid of player%} to "%player%"
  297. set {uuid::%player%} to "%uuid of player%"
  298. delete {team::%player%::invite}
  299. stop
  300. else:
  301. message "{@p}Du er ikke blevet inviteret til et team ;("
  302. stop
  303. if arg 1 is "shop":
  304. if arg-2 is not set:
  305. if {team::%uuid of player%} is set:
  306. open chest with 5 rows named "&6&lTEAM SHOP" to player
  307. wait 3 ticks
  308. format slot 0 of player with light blue stained glass pane named " " to be unstealable
  309. format slot 1 of player with blue stained glass pane named " " to be unstealable
  310. format slot 2 of player with light blue stained glass pane named " " to be unstealable
  311. format slot 3 of player with blue stained glass pane named " " to be unstealable
  312. format slot 4 of player with book named "&6&lCOINS&8&l:" with lore "&6Bank&8: &e$%{team::%{team::%uuid of player%}%::bank}%||&6Points&8: &e%{team::%{team::%uuid of player%}%::bank}%" to be unstealable
  313. format slot 5 of player with blue stained glass pane named " " to be unstealable
  314. format slot 6 of player with light blue stained glass pane named " " to be unstealable
  315. format slot 7 of player with blue stained glass pane named " " to be unstealable
  316. format slot 8 of player with light blue stained glass pane named " " to be unstealable
  317.  
  318. format slot 36 of player with light blue stained glass pane named " " to be unstealable
  319. format slot 37 of player with blue stained glass pane named " " to be unstealable
  320. format slot 38 of player with light blue stained glass pane named " " to be unstealable
  321. format slot 39 of player with blue stained glass pane named " " to be unstealable
  322. format slot 40 of player with light blue stained glass pane named " " to be unstealable
  323. format slot 41 of player with blue stained glass pane named " " to be unstealable
  324. format slot 42 of player with light blue stained glass pane named " " to be unstealable
  325. format slot 43 of player with blue stained glass pane named " " to be unstealable
  326. format slot 44 of player with light blue stained glass pane named " " to be unstealable
  327. #format slot 20 of player with 160:14 named "&4&lKOMMER" to be unstealable
  328. #format slot 21 of player with 160:14 named "&4&lKOMMER" to be unstealable
  329. #format slot 22 of player with 160:14 named "&4&lKOMMER" to be unstealable
  330. #format slot 23 of player with 160:14 named "&4&lKOMMER" to be unstealable
  331. #format slot 24 of player with 160:14 named "&4&lKOMMER" to be unstealable
  332. #format slot 25 of player with 160:14 named "&4&lKOMMER" to be unstealable
  333. if {team::%{team::%uuid of player%}%::maxmem} is between 3 and 5:
  334. format slot 19 of player with 160:14 named "&4&l1 MEDLEM MERE" with lore "&e&oDit teams level skal være i level 2" to be unstealable
  335. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 2:
  336. format slot 19 of player with diamond sword named "&a&lKØB 1 MEDLEM MERE" with lore "&e&oKoster &6$&e2500" to close then run [ make player execute command "team shop medlem"]
  337. if {team::%{team::%uuid of player%}%::maxmem} is between 5 and 10:
  338. format slot 19 of player with 160:14 named "&4&l1 MEDLEM MERE" with lore "&e&oDit teams level skal være i level 4" to be unstealable
  339. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 4:
  340. format slot 19 of player with diamond sword named "&a&lKØB 1 MEDLEM MERE" with lore "&e&oKoster &6$&e7500" to close then run [ make player execute command "team shop medlem"]
  341. format slot 20 of player with golden ingot named "&a&l$1000 TIL ALLE I TEAMET" with lore "&e&oKoster &e4 points" to close then run [ make player execute command "team shop 1000"]
  342. format slot 21 of player with paper named "&a&l{@cratecaps} KEY TIL ALLE ONLINE I TEAMET" with lore "&e&oKoster &e7 points" to close then run [ make player execute command "team shop key"]
  343. if {team::%uuid of player%} is not set:
  344. message "{@p}Du er ikke medlem af et team!"
  345. if arg-2 is "1000":
  346. if {team::%uuid of player%} is not set:
  347. message "{@p}Du er ikke medlem af et team!"
  348. stop
  349. if {team::%{team::%uuid of player%}%::points} is greater or equal to 4:
  350. send "{@p}Du har købt &6$1000&e til alle i dit team."
  351. subtract 4 from {team::%{team::%uuid of player%}%::points}
  352. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  353. execute console command "eco give %loop-value% 1000"
  354. if arg-2 is "key":
  355. if {team::%uuid of player%} is not set:
  356. message "{@p}Du er ikke medlem af et team!"
  357. stop
  358. if {team::%{team::%uuid of player%}%::points} is greater or equal to 7:
  359. send "{@p}Du har købt &61 {@crate} &ecrate til alle online i teamet."
  360. subtract 7 from {team::%{team::%uuid of player%}%::points}
  361. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  362. execute console command "cc give physical {@crate} 1 %loop-value%"
  363. if arg-2 is "medlem":
  364. if {team::%uuid of player%} is not set:
  365. message "{@p}Du er ikke medlem af et team!"
  366. stop
  367. if {team::%{team::%uuid of player%}%::maxmem} is between 3 and 5:
  368. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 2:
  369. if {team::%{team::%uuid of player%}%::bank} is greater or equal to 2500:
  370. remove 2500 from {team::%{team::%uuid of player%}%::bank}
  371. add 1 to {team::%{team::%uuid of player%}%::maxmem}
  372. loop all players:
  373. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  374. send "{@p}&6%player%&e har lige købt &61&e medlem mere til &6teamet&e!" to loop-player
  375. stop
  376. send "{@p}Jeres team har ikke nok penge &8(&6/team bank <antal>&8)"
  377. stop
  378. send "{@p}Jeres team er ikke i level 2+"
  379. stop
  380. if {team::%{team::%uuid of player%}%::maxmem} is between 5 and 10:
  381. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 4:
  382. if {team::%{team::%uuid of player%}%::bank} is greater or equal to 7500:
  383. remove 7500 from {team::%{team::%uuid of player%}%::bank}
  384. add 1 to {team::%{team::%uuid of player%}%::maxmem}
  385. loop all players:
  386. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  387. send "{@p}&6%player%&e har lige købt &61&e medlem mere til &6teamet&e!" to loop-player
  388. stop
  389. send "{@p}Jeres team har ikke nok penge &8(&6/team bank <antal>&8)"
  390. stop
  391. send "{@p}Jeres team er ikke i level 4+"
  392. stop
  393. send "{@p}Jeres team kan ikke have flere medlemmer."
  394. stop
  395. if arg 1 is "kick":
  396. if {team::%uuid of player%} is not set:
  397. message "{@p}Du er ikke medlem af et team!"
  398. else:
  399. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  400. if arg 2 is not set:
  401. message "{@p}Korrekt brug: &6/team kick <spiller>&e."
  402. stop
  403. message "{@p}Du har smidt &6%arg 2% &eud af teamet."
  404. remove {uuid::%arg 2%} from {team::%{team::%uuid of player%}%::medlemmer::*}
  405. message "{@p}Du er blevet smidt ud af teamet &6%{team::%uuid of player%}%&e." to {_player}
  406. delete {team::%{uuid::%arg-2%}%}
  407. stop
  408. else:
  409. message "{@p}Du &4&LSKAL &evære ejeren for at smide en ud af team."
  410. stop
  411. If arg 1 is "info":
  412. if arg-2 is not set:
  413. if {team::%uuid of player%} is set:
  414. open chest with 5 rows named "&6&l%{team::%uuid of player%}%&6's Stats" to player
  415. wait 3 ticks
  416. loop integers from 0 to 44:
  417. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  418. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  419. if loop-value is {team::%{team::%uuid of player%}%::ejer}:
  420.  
  421. else:
  422. add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
  423. set {_medlemmer} to "%{_medlemmer1::*}%"
  424. replace "," with "||" in {_medlemmer}
  425. replace "and" with "||" in {_medlemmer}
  426. if {_medlemmer} contains "<none>":
  427. set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
  428. format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%uuid of player%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
  429. format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%uuid of player%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%uuid of player%}%::kills}%&8/&e%{team::%{team::%uuid of player%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%uuid of player%}%::kills}%||&6DØDE&8: &e%{team::%{team::%uuid of player%}%::deaths}%" to be unstealable
  430. format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%uuid of player%}%::bank}%||&6POINTS&8: &e%{team::%{team::%uuid of player%}%::points}%" to be unstealable
  431. if {team::%uuid of player%} is not set:
  432. message "{@p}Du er ikke medlem af et team!"
  433. else:
  434. set {_arg} to {uuid::%arg-2%}
  435. if {team::%{_arg}%} is set:
  436. open chest with 5 rows named "&6&l%{team::%{_arg}%}%&6's Stats" to player
  437. wait 3 ticks
  438. loop integers from 0 to 44:
  439. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  440. loop {team::%{team::%{_arg}%}%::medlemmer::*}:
  441. if loop-value is {team::%{team::%{_arg}%}%::ejer}:
  442.  
  443. else:
  444. add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
  445. set {_medlemmer} to "%{_medlemmer1::*}%"
  446. replace "," with "||" in {_medlemmer}
  447. replace "and" with "||" in {_medlemmer}
  448. if {_medlemmer} contains "<none>":
  449. set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
  450. format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%{_arg}%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
  451. format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%{_arg}%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%{_arg}%}%::kills}%&8/&e%{team::%{team::%{_arg}%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%{_arg}%}%::kills}%||&6DØDE&8: &e%{team::%{team::%{_arg}%}%::deaths}%" to be unstealable
  452. format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%{_arg}%}%::bank}%||&6POINTS&8: &e%{team::%{team::%{_arg}%}%::points}%" to be unstealable
  453. else:
  454. if {team::%arg-2%} is set:
  455. set {_arg} to arg 2
  456. open chest with 5 rows named "&6&l%{team::%{_arg}%}%&6's Stats" to player
  457. wait 3 ticks
  458. loop integers from 0 to 44:
  459. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  460. loop {team::%{team::%{_arg}%}%::medlemmer::*}:
  461. if loop-value is {team::%{team::%{_arg}%}%::ejer}:
  462.  
  463. else:
  464. add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
  465. set {_medlemmer} to "%{_medlemmer1::*}%"
  466. replace "," with "||" in {_medlemmer}
  467. replace "and" with "||" in {_medlemmer}
  468. if {_medlemmer} contains "<none>":
  469. set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
  470. format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%{_arg}%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
  471. format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%{_arg}%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%{_arg}%}%::kills}%&8/&e%{team::%{team::%{_arg}%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%{_arg}%}%::kills}%||&6DØDE&8: &e%{team::%{team::%{_arg}%}%::deaths}%" to be unstealable
  472. format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%{_arg}%}%::bank}%||&6POINTS&8: &e%{team::%{team::%{_arg}%}%::points}%" to be unstealable
  473. if arg 1 is "bank":
  474. if {team::%uuid of player%} is not set:
  475. message "{@p}Du er ikke medlem af et team!"
  476. stop
  477. if arg 2 is not set:
  478. message "{@p}Konto&8: &a%{team::%{team::%uuid of player%}%::bank}%$"
  479. message "{@p}Skriv &6/team bank <antal>&e, for at indsætte penge til din teamets bankkonto."
  480. stop
  481. if arg 2 is set:
  482. if arg 2 is "confirm":
  483. if {bankinset.%player%} is set:
  484. set {_penge} to {bankinset.%player%}
  485. remove {_penge} from player's money
  486. add {bankinset.%player%} to {team::%{team::%uuid of player%}%::bank}
  487. message "{@p}Du satte &a$%{_penge}%&e ind på teamets bank, og derfor er der nu &a$%{team::%{team::%uuid of player%}%::bank}%&e på jeres bankkonto."
  488. wait 2 ticks
  489. delete {bankinset.%player%}
  490. stop
  491. else:
  492. message "{@p}Du skal først bruge &a/team bank (antal)&e, for at kunne sætte penge ind på team kontoen."
  493. stop
  494. else:
  495. set {_number} to arg 2 parsed as a number
  496. if player's money is less than {_number}:
  497. message "{@p}&6Du har ikke &4$%{_number}%&e!"
  498. stop
  499. if {_number} is a number:
  500. message "{@p}For at sætte pengene ind skal du skrive &a/team bank confirm&e!"
  501. set {bankinset.%player%} to {_number}
  502. stop
  503. if {_number} is not a number:
  504. message "{@p}&6Du kan kun tilføje hele penge beløb!"
  505. stop
  506. if arg-1 is "mission":
  507. if arg-2 is not set:
  508. if {team::%uuid of player%} is set:
  509. open chest with 3 rows named "&6&lTEAM MISSIONER" to player
  510. wait 3 ticks
  511. format slot 0 of player with orange stained glass pane named "&r" to be unstealable
  512. format slot 1 of player with gray stained glass pane named "&r" to be unstealable
  513. format slot 2 of player with orange stained glass pane named "&r" to be unstealable
  514. format slot 3 of player with gray stained glass pane named "&r" to be unstealable
  515. format slot 4 of player with orange stained glass pane named "&r" to be unstealable
  516. format slot 5 of player with gray stained glass pane named "&r" to be unstealable
  517. format slot 6 of player with orange stained glass pane named "&r" to be unstealable
  518. format slot 7 of player with gray stained glass pane named "&r" to be unstealable
  519. format slot 8 of player with orange stained glass pane named "&r" to be unstealable
  520. format slot 18 of player with gray stained glass pane named "&r" to be unstealable
  521. format slot 19 of player with orange stained glass pane named "&r" to be unstealable
  522. format slot 20 of player with gray stained glass pane named "&r" to be unstealable
  523. format slot 21 of player with orange stained glass pane named "&r" to be unstealable
  524. format slot 22 of player with gray stained glass pane named "&r" to be unstealable
  525. format slot 23 of player with orange stained glass pane named "&r" to be unstealable
  526. format slot 24 of player with gray stained glass pane named "&r" to be unstealable
  527. format slot 25 of player with orange stained glass pane named "&r" to be unstealable
  528. format slot 26 of player with gray stained glass pane named "&r" to be unstealable
  529. if {team::%{team::%uuid of player%}%::mission::1} is "igang":
  530. format slot 9 of player with diamond sword named "&e&lMISSION 1" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::1::kills}%&8/&a200" to close then run [ make player execute command "team mission 1"]
  531. else if {team::%{team::%uuid of player%}%::mission::1} is "klaret":
  532. format slot 9 of player with light green stained glass pane named "&a&lMISSION 1" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  533. else if {team::%{team::%uuid of player%}%::mission::1} is "låst":
  534. format slot 9 of player with red stained glass pane named "&4&lMISSION 1" with lore "&r||&7Status &8» &4Låst" to be unstealable
  535.  
  536. if {team::%{team::%uuid of player%}%::mission::2} is "igang":
  537. format slot 10 of player with diamond sword named "&e&lMISSION 2" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::2::kills}%&8/&a400" to close then run [ make player execute command "team mission 2"]
  538. else if {team::%{team::%uuid of player%}%::mission::2} is "klaret":
  539. format slot 10 of player with light green stained glass pane named "&a&lMISSION 2" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  540. else if {team::%{team::%uuid of player%}%::mission::2} is "låst":
  541. format slot 10 of player with red stained glass pane named "&4&lMISSION 2" with lore "&r||&7Status &8» &4Låst" to be unstealable
  542.  
  543. if {team::%{team::%uuid of player%}%::mission::3} is "igang":
  544. format slot 11 of player with diamond sword named "&e&lMISSION 3" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::3::kills}%&8/&a500" to close then run [ make player execute command "team mission 3"]
  545. else if {team::%{team::%uuid of player%}%::mission::3} is "klaret":
  546. format slot 11 of player with light green stained glass pane named "&a&lMISSION 3" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  547. else if {team::%{team::%uuid of player%}%::mission::3} is "låst":
  548. format slot 11 of player with red stained glass pane named "&4&lMISSION 3" with lore "&r||&7Status &8» &4Låst" to be unstealable
  549.  
  550. if {team::%{team::%uuid of player%}%::mission::4} is "igang":
  551. format slot 12 of player with diamond sword named "&e&lMISSION 4" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::4::kills}%&8/&a600" to close then run [ make player execute command "team mission 4"]
  552. else if {team::%{team::%uuid of player%}%::mission::4} is "klaret":
  553. format slot 12 of player with light green stained glass pane named "&a&lMISSION 4" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  554. else if {team::%{team::%uuid of player%}%::mission::4} is "låst":
  555. format slot 12 of player with red stained glass pane named "&4&lMISSION 4" with lore "&r||&7Status &8» &4Låst" to be unstealable
  556.  
  557. if {team::%{team::%uuid of player%}%::mission::5} is "igang":
  558. format slot 13 of player with diamond sword named "&e&lMISSION 5" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::5::kills}%&8/&a700" to close then run [ make player execute command "team mission 5"]
  559. else if {team::%{team::%uuid of player%}%::mission::5} is "klaret":
  560. format slot 13 of player with light green stained glass pane named "&a&lMISSION 5" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  561. else if {team::%{team::%uuid of player%}%::mission::5} is "låst":
  562. format slot 13 of player with red stained glass pane named "&4&lMISSION 5" with lore "&r||&7Status &8» &4Låst" to be unstealable
  563.  
  564. if {team::%{team::%uuid of player%}%::mission::6} is "igang":
  565. format slot 14 of player with diamond sword named "&e&lMISSION 6" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::6::kills}%&8/&a800" to close then run [ make player execute command "team mission 6"]
  566. else if {team::%{team::%uuid of player%}%::mission::6} is "klaret":
  567. format slot 14 of player with light green stained glass pane named "&a&lMISSION 6" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  568. else if {team::%{team::%uuid of player%}%::mission::6} is "låst":
  569. format slot 14 of player with red stained glass pane named "&4&lMISSION 6" with lore "&r||&7Status &8» &4Låst" to be unstealable
  570.  
  571. if {team::%{team::%uuid of player%}%::mission::7} is "igang":
  572. format slot 15 of player with diamond sword named "&e&lMISSION 7" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::7::kills}%&8/&a900" to close then run [ make player execute command "team mission 7"]
  573. else if {team::%{team::%uuid of player%}%::mission::7} is "klaret":
  574. format slot 15 of player with light green stained glass pane named "&a&lMISSION 7" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  575. else if {team::%{team::%uuid of player%}%::mission::7} is "låst":
  576. format slot 15 of player with red stained glass pane named "&4&lMISSION 7" with lore "&r||&7Status &8» &4Låst" to be unstealable
  577.  
  578. if {team::%{team::%uuid of player%}%::mission::8} is "igang":
  579. format slot 16 of player with diamond sword named "&e&lMISSION 8" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::8::kills}%&8/&a1000" to close then run [ make player execute command "team mission 8"]
  580. else if {team::%{team::%uuid of player%}%::mission::8} is "klaret":
  581. format slot 16 of player with light green stained glass pane named "&a&lMISSION 8" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  582. else if {team::%{team::%uuid of player%}%::mission::8} is "låst":
  583. format slot 16 of player with red stained glass pane named "&4&lMISSION 8" with lore "&r||&7Status &8» &4Låst" to be unstealable
  584.  
  585. if {team::%{team::%uuid of player%}%::mission::9} is "igang":
  586. format slot 17 of player with diamond sword named "&e&lMISSION 9" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::9::kills}%&8/&a1100" to close then run [ make player execute command "team mission 9"]
  587. else if {team::%{team::%uuid of player%}%::mission::9} is "klaret":
  588. format slot 17 of player with light green stained glass pane named "&a&lMISSION 9" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  589. else if {team::%{team::%uuid of player%}%::mission::9} is "låst":
  590. format slot 17 of player with red stained glass pane named "&4&lMISSION 9" with lore "&r||&7Status &8» &4Låst" to be unstealable
  591. else:
  592. send "{@p}Du er ikke medlem af et team" to player
  593. stop
  594. if arg-2 is "1":
  595. if {team::%uuid of player%} is set:
  596. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  597. if {team::%{team::%uuid of player%}%::mission::1} is "igang":
  598. if {team::%{team::%uuid of player%}%::mission::1::kills} is 200:
  599. set {team::%{team::%uuid of player%}%::mission::1} to "klaret"
  600. set {team::%{team::%uuid of player%}%::mission::2} to "igang"
  601. set {team::%{team::%uuid of player%}%::mission::2::kills} to 0
  602. add 1 to {team::%{team::%uuid of player%}%::points}
  603. send "{@p}Dit team har klaret mission &61&e!" to player
  604. stop
  605. else:
  606. send "{@p}Jeres team har ikke nok &6kills&e." to player
  607. stop
  608. else:
  609. send "{@p}Dit team har klaret den mission &61&e!" to player
  610. stop
  611. else:
  612. send "{@p}Du er ikke ejer af dit team." to player
  613. stop
  614. else:
  615. send "{@p}Du er ikke medlem af et team" to player
  616. stop
  617. if arg-2 is "2":
  618. if {team::%uuid of player%} is set:
  619. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  620. if {team::%{team::%uuid of player%}%::mission::2} is "igang":
  621. if {team::%{team::%uuid of player%}%::mission::2::kills} is 400:
  622. set {team::%{team::%uuid of player%}%::mission::2} to "klaret"
  623. set {team::%{team::%uuid of player%}%::mission::3} to "igang"
  624. set {team::%{team::%uuid of player%}%::mission::3::kills} to 0
  625. add 1 to {team::%{team::%uuid of player%}%::points}
  626. send "{@p}Dit team har klaret mission &62&e!" to player
  627. stop
  628. else:
  629. send "{@p}Jeres team har ikke nok &6kills&e." to player
  630. stop
  631. else:
  632. send "{@p}Dit team &e&nhar&e klaret mission &62&e!" to player
  633. stop
  634. else:
  635. send "{@p}Du er ikke ejer af dit team." to player
  636. stop
  637. else:
  638. send "{@p}Du er ikke medlem af et team" to player
  639. stop
  640. if arg-2 is "3":
  641. if {team::%uuid of player%} is set:
  642. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  643. if {team::%{team::%uuid of player%}%::mission::3} is "igang":
  644. if {team::%{team::%uuid of player%}%::mission::3::kills} is 500:
  645. set {team::%{team::%uuid of player%}%::mission::3} to "klaret"
  646. set {team::%{team::%uuid of player%}%::mission::4} to "igang"
  647. set {team::%{team::%uuid of player%}%::mission::4::kills} to 0
  648. add 2 to {team::%{team::%uuid of player%}%::points}
  649. send "{@p}Dit team har klaret mission &63&e!" to player
  650. stop
  651. else:
  652. send "{@p}Jeres team har ikke nok &6kills&e." to player
  653. stop
  654. else:
  655. send "{@p}Dit team &e&nhar&e klaret mission &63&e!" to player
  656. stop
  657. else:
  658. send "{@p}Du er ikke ejer af dit team." to player
  659. stop
  660. else:
  661. send "{@p}Du er ikke medlem af et team" to player
  662. stop
  663. if arg-2 is "4":
  664. if {team::%uuid of player%} is set:
  665. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  666. if {team::%{team::%uuid of player%}%::mission::4} is "igang":
  667. if {team::%{team::%uuid of player%}%::mission::4::kills} is 600:
  668. set {team::%{team::%uuid of player%}%::mission::4} to "klaret"
  669. set {team::%{team::%uuid of player%}%::mission::5} to "igang"
  670. set {team::%{team::%uuid of player%}%::mission::5::kills} to 0
  671. add 2 to {team::%{team::%uuid of player%}%::points}
  672. send "{@p}Dit team har klaret mission &64&e!" to player
  673. stop
  674. else:
  675. send "{@p}Jeres team har ikke nok &6kills&e." to player
  676. stop
  677. else:
  678. send "{@p}Dit team &e&nhar&e klaret mission &64&e!" to player
  679. stop
  680. else:
  681. send "{@p}Du er ikke ejer af dit team." to player
  682. stop
  683. else:
  684. send "{@p}Du er ikke medlem af et team" to player
  685. stop
  686. if arg-2 is "5":
  687. if {team::%uuid of player%} is set:
  688. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  689. if {team::%{team::%uuid of player%}%::mission::5} is "igang":
  690. if {team::%{team::%uuid of player%}%::mission::5::kills} is 700:
  691. set {team::%{team::%uuid of player%}%::mission::5} to "klaret"
  692. set {team::%{team::%uuid of player%}%::mission::6} to "igang"
  693. set {team::%{team::%uuid of player%}%::mission::6::kills} to 0
  694. add 3 to {team::%{team::%uuid of player%}%::points}
  695. send "{@p}Dit team har klaret mission &65&e!" to player
  696. stop
  697. else:
  698. send "{@p}Jeres team har ikke nok &6kills&e." to player
  699. stop
  700. else:
  701. send "{@p}Dit team &e&nhar&e klaret mission &65&e!" to player
  702. stop
  703. else:
  704. send "{@p}Du er ikke ejer af dit team." to player
  705. stop
  706. else:
  707. send "{@p}Du er ikke medlem af et team" to player
  708. stop
  709. if arg-2 is "6":
  710. if {team::%uuid of player%} is set:
  711. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  712. if {team::%{team::%uuid of player%}%::mission::6} is "igang":
  713. if {team::%{team::%uuid of player%}%::mission::6::kills} is 800:
  714. set {team::%{team::%uuid of player%}%::mission::6} to "klaret"
  715. set {team::%{team::%uuid of player%}%::mission::7} to "igang"
  716. set {team::%{team::%uuid of player%}%::mission::7::kills} to 0
  717. add 3 to {team::%{team::%uuid of player%}%::points}
  718. send "{@p}Dit team har klaret mission &66&e!" to player
  719. stop
  720. else:
  721. send "{@p}Jeres team har ikke nok &6kills&e." to player
  722. stop
  723. else:
  724. send "{@p}Dit team &e&nhar&e klaret mission &66&e!" to player
  725. stop
  726. else:
  727. send "{@p}Du er ikke ejer af dit team." to player
  728. stop
  729. else:
  730. send "{@p}Du er ikke medlem af et team" to player
  731. stop
  732. if arg-2 is "7":
  733. if {team::%uuid of player%} is set:
  734. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  735. if {team::%{team::%uuid of player%}%::mission::7} is "igang":
  736. if {team::%{team::%uuid of player%}%::mission::7::kills} is 900:
  737. set {team::%{team::%uuid of player%}%::mission::7} to "klaret"
  738. set {team::%{team::%uuid of player%}%::mission::8} to "igang"
  739. set {team::%{team::%uuid of player%}%::mission::8::kills} to 0
  740. add 4 to {team::%{team::%uuid of player%}%::points}
  741. send "{@p}Dit team har klaret mission &67&e!" to player
  742. stop
  743. else:
  744. send "{@p}Jeres team har ikke nok &6kills&e." to player
  745. stop
  746. else:
  747. send "{@p}Dit team &e&nhar&e klaret mission &67&e!" to player
  748. stop
  749. else:
  750. send "{@p}Du er ikke ejer af dit team." to player
  751. stop
  752. else:
  753. send "{@p}Du er ikke medlem af et team" to player
  754. stop
  755. if arg-2 is "8":
  756. if {team::%uuid of player%} is set:
  757. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  758. if {team::%{team::%uuid of player%}%::mission::8} is "igang":
  759. if {team::%{team::%uuid of player%}%::mission::8::kills} is 1000:
  760. set {team::%{team::%uuid of player%}%::mission::8} to "klaret"
  761. set {team::%{team::%uuid of player%}%::mission::9} to "igang"
  762. set {team::%{team::%uuid of player%}%::mission::9::kills} to 0
  763. add 4 to {team::%{team::%uuid of player%}%::points}
  764. send "{@p}Dit team har klaret mission &68&e!" to player
  765. stop
  766. else:
  767. send "{@p}Jeres team har ikke nok &6kills&e." to player
  768. stop
  769. else:
  770. send "{@p}Dit team &e&nhar&e klaret mission &68&e!" to player
  771. stop
  772. else:
  773. send "{@p}Du er ikke ejer af dit team." to player
  774. stop
  775. else:
  776. send "{@p}Du er ikke medlem af et team" to player
  777. stop
  778. if arg-2 is "9":
  779. if {team::%uuid of player%} is set:
  780. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  781. if {team::%{team::%uuid of player%}%::mission::9} is "igang":
  782. if {team::%{team::%uuid of player%}%::mission::9::kills} is 1100:
  783. set {team::%{team::%uuid of player%}%::mission::9} to "klaret"
  784. add 5 to {team::%{team::%uuid of player%}%::points}
  785. send "{@p}Dit team har nu klaret alle 9 missioner! Tillykke!" to player
  786. stop
  787. else:
  788. send "{@p}Jeres team har ikke nok &6kills&e." to player
  789. stop
  790. else:
  791. send "{@p}Dit team &e&nhar&e klaret mission &69&e!" to player
  792. stop
  793. else:
  794. send "{@p}Du er ikke ejer af dit team." to player
  795. stop
  796. else:
  797. send "{@p}Du er ikke medlem af et team" to player
  798. stop
  799. if arg-1 is "start":
  800. if {team::%uuid of player%} is set:
  801. open chest with 5 rows named "&6&lTEAM &8» &e%{team::%uuid of player%}%" to player
  802. wait 3 ticks
  803. loop integers from 0 to 44:
  804. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  805. format slot 13 of player with book named "&6&lTEAM INFO" with lore "&7&oKlik her for at se dit teams info" to run [ make player execute command "team info"]
  806. format slot 20 of player with diamond sword named "&6&lTEAM MISSIONER" with lore "&7&oKlik her for at se team missionerne" to run [ make player execute command "team mission"]
  807. format slot 24 of player with golden ingot named "&6&lTEAM SHOP" with lore "&7&oKlik her for at åbne team shoppen." to run [ make player execute command "team shop"]
  808. format slot 31 of player with chest named "&6&lTEAM KISTE" with lore "&7&oKlik her for at åbne team kisten" to run [ make player execute command "team chest"]
  809.  
  810. on death of player:
  811. if {team::%uuid of attacker%} is set:
  812. if {team::%{team::%uuid of attacker%}%::mission::1} is "igang":
  813. add 1 to {team::%{team::%uuid of attacker%}%::mission::1::kills}
  814. else if {team::%{team::%uuid of attacker%}%::mission::2} is "igang":
  815. add 1 to {team::%{team::%uuid of attacker%}%::mission::2::kills}
  816. else if {team::%{team::%uuid of attacker%}%::mission::3} is "igang":
  817. add 1 to {team::%{team::%uuid of attacker%}%::mission::3::kills}
  818. else if {team::%{team::%uuid of attacker%}%::mission::4} is "igang":
  819. add 1 to {team::%{team::%uuid of attacker%}%::mission::4::kills}
  820. else if {team::%{team::%uuid of attacker%}%::mission::5} is "igang":
  821. add 1 to {team::%{team::%uuid of attacker%}%::mission::5::kills}
  822. else if {team::%{team::%uuid of attacker%}%::mission::6} is "igang":
  823. add 1 to {team::%{team::%uuid of attacker%}%::mission::6::kills}
  824. else if {team::%{team::%uuid of attacker%}%::mission::7} is "igang":
  825. add 1 to {team::%{team::%uuid of attacker%}%::mission::7::kills}
  826. else if {team::%{team::%uuid of attacker%}%::mission::8} is "igang":
  827. add 1 to {team::%{team::%uuid of attacker%}%::mission::8::kills}
  828. else if {team::%{team::%uuid of attacker%}%::mission::9} is "igang":
  829. add 1 to {team::%{team::%uuid of attacker%}%::mission::9::kills}
  830. command /tk:
  831. trigger:
  832. execute player command "team chest"
  833. command /teamdisband <text>:
  834. trigger:
  835. if player is op:
  836. if {team::%{uuid::%arg-1%}%} is set:
  837. send "{@p}Du fjernede &6%arg-1%&6's &eteam."
  838. set {_arg} to {uuid::%arg-1%}
  839. delete {team::%{_arg}%::lvlkills}
  840. delete {team::%{_arg}%::lvl}
  841. delete {team::%{_arg}%::kills}
  842. delete {team::%{_arg}%::deaths}
  843. delete {team::%{_arg}%::ejer}
  844. loop {team::%{_arg}%::medlemmer::*}:
  845. remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
  846. delete {team::%loop-value%}
  847. delete {team::%{_arg}%}
  848. stop
  849. send "{@p}Du fjernede teamet &6%arg-1%"
  850. delete {team::%arg-1%::lvlkills}
  851. delete {team::%arg-1%::lvl}
  852. delete {team::%arg-1%::kills}
  853. delete {team::%arg-1%::deaths}
  854. delete {team::%arg-1%::ejer}
  855. loop {team::%arg-1%::medlemmer::*}:
  856. remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
  857. delete {team::%loop-value%}
  858. delete {team::%arg-1%}
  859.  
  860.  
  861. On death:
  862. If {team::%uuid of attacker%} is set:
  863. add 1 to {team::%{team::%uuid of attacker%}%::kills}
  864. If {team::%uuid of victim%} is set:
  865. add 1 to {team::%{team::%uuid of victim%}%::deaths}
  866.  
  867. on damage:
  868. if {team::%uuid of attacker%} is {team::%uuid of victim%}:
  869. if projectile exists:
  870. stop
  871. cancel event
  872. stop
  873.  
  874. on inventory close:
  875. if inventory name of player's current inventory is "&e&lTEAM KISTE":
  876. delete {teamv1::%{team::%uuid of player%}%::chest}
  877. set {_slot} to 0
  878. loop 54 times:
  879. set {team::1::%{_slot}%::%{team::%uuid of player%}%} to slot {_slot} of player's current inventory
  880. add 1 to {_slot}
  881.  
  882.  
  883. on chat:
  884. cancel event
  885. if {team::%uuid of player%} is set:
  886. send "&8[%{team::%{team::%uuid of player%}%::farve}%%{team::%uuid of player%}%&8] %player's displayname% &8» %{farve::%player%}%%message%" to players
  887. stop
  888. send "%player's displayname% &8» %{farve::%player%}%%message%" to players
  889. on join:
  890. if player has permission "rank.admin":
  891. set {farve::%player%} to "&c"
  892. stop
  893. else if player has permission "rank.mod":
  894. set {farve::%player%} to "&9"
  895. stop
  896. else if player has permission "rank.hjælper":
  897. set {farve::%player%} to "&d"
  898. stop
  899. set {farve::%player%} to "&7"
  900. stop
  901.  
  902. sub "team.page1":
  903. set {_p} to parameter 1
  904. open chest with 6 rows named "&e&lTEAM KISTE" to {_p}
  905. set {_slot} to 0
  906. loop 54 times:
  907. set slot {_slot} of {_p}'s current inventory to {team::1::%{_slot}%::%{team::%uuid of parameter 1%}%}
  908. add 1 to {_slot}
  909. set {team::%{team::%uuid of {_p}%}%::chest} to true
Advertisement
Add Comment
Please, Sign In to add comment