FlupMC

Untitled

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