FlupMC

Untitled

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