Advertisement
Guest User

Untitled

a guest
Apr 20th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.48 KB | None | 0 0
  1. options:
  2. P: [&2Team&r]
  3. N: &a&o%command sender%:&r
  4. IS: &7Invalid Syntax. &a/team &7help
  5.  
  6. command /team [<text>] [<text>] [<text>] [<text>] [<text>]:
  7. trigger:
  8. if arg 1 is not set:
  9. command sender command "/team help"
  10. else if arg 1 is equal to "help":
  11. if command sender does not have the permission "essentials.helpop":
  12. message "{@P} &4Permission denied. &a(missing ""teams.help"")"
  13. else:
  14. message "&7/team list - &aList teams"
  15. message "&7/team create [<id>] - &aCreate Team"
  16. message "&7/team delete <id> - &aDelete Team"
  17. message "&7/team join <id> [<player=you>] - &aPut <player> in Team"
  18. message "&7/team leave [<player=you>] - &aRemove <player> from Team"
  19. message "&7/team colour - &aColour all teams at once"
  20. message "&7/team oldcolour - &aColour all teams at once, Shroomzee style"
  21. message "&7/team uncolour - &aUncolor all teams"
  22. message "&7/team solos - &aView all solos"
  23. message "&7/team soloinform - &aTell solos to /uhcteam"
  24. message "&7/team rebuild - &aRebuild teams, skip empty"
  25. message "&7/team random <size> <amount> - &aCreate Random Teams"
  26. message "&7/team newrandom <size> <amount> - &aCreate Swag Random Teams"
  27. message "&7/team friendlyfire <on:off> - &aToggle friendly fire"
  28. message "&7/team check <team:player> - &aCheck who's on what team"
  29. message "&7/team reset - &aReset all teams"
  30. message "&7/uhcteam help - &aFull list of /uhcteam commands"
  31. else if arg 1 is equal to "list":
  32. if {Teams::*} is not set:
  33. message "{@P} &7No teams set."
  34. else:
  35. loop {Teams::*}:
  36. message "&7&oTeam &a&o%loop-value%&r&o:"
  37. loop {Team.%loop-value%::*}:
  38. set {_Player} to ("%loop-value-2%" parsed as offlineplayer)
  39. if {_Player} is online:
  40. message "&7- &a%loop-value-2%"
  41. else:
  42. message "&7- &c%loop-value-2%"
  43. else if arg 1 is equal to "check":
  44. if arg 2 is not set:
  45. message "{@P} {@IS}"
  46. else if {Teams::*} is not set:
  47. message "{@P} &7No teams set."
  48. else if arg 2 is set:
  49. if arg 2 parsed as an integer is 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 71 or 72 or 73 or 74 or 75 or 76 or 77 or 78 or 79 or 80 or 81 or 82 or 83 or 84 or 85 or 86 or 87 or 88 or 89 or 90 or 91 or 92 or 93 or 94 or 95 or 96 or 97 or 98 or 99 or 100:
  50. if {Team.%arg-2%::*} is not set:
  51. message "{@P} &7No such team set."
  52. else:
  53. message "&7&oTeam &a&o%arg-2%&r&o:"
  54. loop {Team.%arg-2%::*}:
  55. set {_Player} to ("%loop-value%" parsed as offlineplayer)
  56. if {_Player} is online:
  57. message "&7- &a%loop-value%"
  58. else:
  59. message "&7- &c%loop-value%"
  60. else:
  61. if {Teams.InTeam::%arg-2%} is set:
  62. loop {Teams::*}:
  63. add 1 to {_TeamNumberCounter}
  64. loop {Team.%loop-value%::*}:
  65. loop-value-2 is equal to arg 2
  66. set {_TeamNumber} to {_TeamNumberCounter}
  67. if {_TeamNumber} is not set:
  68. message "{@P} &a%arg-2% &7is not on a team."
  69. stop trigger
  70. message "&7&oTeam &a&o%{_TeamNumber}%&r&o:"
  71. loop {Team.%{_TeamNumber}%::*}:
  72. set {_Player} to ("%loop-value%" parsed as offlineplayer)
  73. if {_Player} is online:
  74. message "&7- &a%loop-value%"
  75. else:
  76. message "&7- &c%loop-value%"
  77. else:
  78. message "{@P} &a%arg-2% &7is not on a team."
  79. else if arg 1 is equal to "create":
  80. if command sender does not have the permission "teams.create":
  81. message "{@P} &4Permission denied. &a(missing ""teams.create"")"
  82. else if arg 2 is not set:
  83. message "{@P} {@IS}"
  84. else if arg 3 is set:
  85. message "{@P} {@IS}"
  86. else:
  87. set {_TeamNumber} to ("%arg 2%" parsed as integer)
  88. if {_TeamNumber} is not set:
  89. message "{@P} {@IS}"
  90. else if {_TeamNumber} is smaller than 1:
  91. message "{@P} &7Invalid Team Number!"
  92. else if {Teams::%{_TeamNumber}%} is set:
  93. message "{@P} &7That team already exists."
  94. else:
  95. set {Teams::%{_TeamNumber}%} to {_TeamNumber}
  96. command "/scoreboard teams add UHC%{_TeamNumber}%"
  97. if {Teams.FriendlyFire} is set:
  98. command "/scoreboard teams option UHC%{_TeamNumber}% friendlyfire false"
  99. message "{@P} &7Created Team &a%{_TeamNumber}%&7!"
  100. loop all players:
  101. loop-player has the permission "teams.create.notify"
  102. loop-player is not command sender
  103. message "{@P} {@N} &7Created Team &a%{_TeamNumber}%" to loop-player
  104. else if arg 1 is equal to "delete":
  105. if command sender does not have the permission "teams.delete":
  106. message "{@P} &4Permission denied. &a(missing ""teams.delete"")"
  107. else if arg 2 is not set:
  108. message "{@P} {@IS}"
  109. else if arg 3 is set:
  110. message "{@P} {@IS}"
  111. else:
  112. set {_TeamNumber} to ("%arg 2%" parsed as integer)
  113. if {_TeamNumber} is not set:
  114. message "{@P} {@IS}"
  115. else if {_TeamNumber} is smaller than 1:
  116. message "{@P} &7Invalid Team Number!"
  117. else if {Teams::%{_TeamNumber}%} is not set:
  118. message "{@P} &7That team does not exist."
  119. else:
  120. delete {Teams::%{_TeamNumber}%}
  121. loop {Team.%{_TeamNumber}%::*}:
  122. message "{@P} &7Your team was deleted." to ("%loop-value%" parsed as offlineplayer)
  123. delete {Teams.InTeam::%loop-value%}
  124. delete {Team.%{_TeamNumber}%::*}
  125. command "/scoreboard teams remove UHC%{_TeamNumber}%"
  126. message "{@P} &7Deleted Team &a%{_TeamNumber}%"
  127. loop all players:
  128. loop-player has the permission "teams.delete.notify"
  129. loop-player is not command sender
  130. message "{@P} {@N} &7Deleted Team &a%{_TeamNumber}%" to loop-player
  131. else if arg 1 is equal to "join":
  132. if command sender does not have the permission "skript.op":
  133. message "{@P} &4Permission denied. &a(missing ""teams.join"")"
  134. else if arg 2 is not set:
  135. message "{@P} {@IS}"
  136. else if arg 4 is set:
  137. message "{@P} {@IS}"
  138. else:
  139. set {_TeamNumber} to ("%arg 2%" parsed as integer)
  140. if {_TeamNumber} is not set:
  141. message "{@P} {@IS}"
  142. else if {_TeamNumber} is smaller than 1:
  143. message "{@P} &7Invalid Team Number!"
  144. else if {Teams::%{_TeamNumber}%} is not set:
  145. message "{@P} &7Team does not exist!"
  146. else:
  147. if arg 3 is not set:
  148. if command sender is console:
  149. stop
  150. set {_Player} to (name of command sender)
  151. else:
  152. set {_Player} to arg 3
  153. if {Teams.InTeam::%{_Player}%} is set:
  154. message "{@P} &7Player &a%{_Player}% &7is already on a team!"
  155. else:
  156. loop {Team.%{_TeamNumber}%::*}:
  157. set {_TeamPlayer} to ("%loop-value-1%" parsed as offlineplayer)
  158. if {_TeamPlayer} is online:
  159. message "{@P} &a%{_Player}% &7has been added to your team." to {_TeamPlayer}
  160. set {Teams.InTeam::%{_Player}%} to {_TeamNumber}
  161. add {_Player} to {Team.%{_TeamNumber}%::*}
  162. command "/scoreboard teams join UHC%{_TeamNumber}% %{_Player}%"
  163. message "{@P} &7You were added to &aTeam %{_TeamNumber}%&7!" to ("%{_Player}%" parsed as offlineplayer)
  164. message "{@P} &7Added &a%{_Player}% &7to &aTeam %{_TeamNumber}%&7!"
  165. loop all players:
  166. loop-player has the permission "teams.join.notify"
  167. loop-player is not command sender
  168. message "{@P} {@N} &7Added &a%{_Player}% &7to &7Team %{_TeamNumber}%&7!" to loop-player
  169. else if arg 1 is equal to "leave":
  170. if command sender does not have the permission "skript.op":
  171. message "{@P} &4Permission denied. &a(missing ""teams.leave"")"
  172. else if arg 3 is set:
  173. message "{@P} {@IS}"
  174. else:
  175. if arg 2 is not set:
  176. if command sender is console:
  177. stop
  178. set {_Player} to (name of command sender)
  179. else:
  180. set {_Player} to arg 2
  181. if {Teams.InTeam::%{_Player}%} is not set:
  182. message "{@P} &a%{_Player}% &7is not on a team!"
  183. else:
  184. set {_TeamNumber} to {Teams.InTeam::%{_Player}%}
  185. delete {Teams.InTeam::%{_Player}%}
  186. remove {_Player} from {Team.%{_TeamNumber}%::*}
  187. command "/scoreboard teams leave %{_Player}%"
  188. loop {Team.%{_TeamNumber}%::*}:
  189. set {_TeamPlayer} to ("%loop-value-1%" parsed as offlineplayer)
  190. if {_TeamPlayer} is online:
  191. message "{@P} &a%{_Player}% &7has been removed from your team." to {_TeamPlayer}
  192. message "{@P} &7You were removed from &aTeam %{_TeamNumber}%" to ("%{_Player}%" parsed as offlineplayer)
  193. message "{@P} &7Removed &a%{_Player}% &7from &aTeam %{_TeamNumber}%"
  194. loop all players:
  195. loop-player has the permission "teams.join.notify"
  196. loop-player is not command sender
  197. message "{@P} {@N} &7Removed &a%{_Player}% &7from &aTeam %{_TeamNumber}%" to loop-player
  198. else if arg 1 is equal to "friendlyfire" or "teamdamage":
  199. if command sender does not have the permission "teams.friendlyfire":
  200. message "{@P} &7Permission denied. &a(missing ""teams.friendlyfire"")"
  201. else if arg 2 is "on" or "enable" or "true":
  202. delete {Teams.FriendlyFire}
  203. command "/scoreboard teams option UHC1 friendlyfire true"
  204. command "/scoreboard teams option UHC2 friendlyfire true"
  205. command "/scoreboard teams option UHC3 friendlyfire true"
  206. command "/scoreboard teams option UHC4 friendlyfire true"
  207. command "/scoreboard teams option UHC5 friendlyfire true"
  208. command "/scoreboard teams option UHC6 friendlyfire true"
  209. command "/scoreboard teams option UHC7 friendlyfire true"
  210. command "/scoreboard teams option UHC8 friendlyfire true"
  211. command "/scoreboard teams option UHC9 friendlyfire true"
  212. command "/scoreboard teams option UHC10 friendlyfire true"
  213. command "/scoreboard teams option UHC11 friendlyfire true"
  214. command "/scoreboard teams option UHC12 friendlyfire true"
  215. command "/scoreboard teams option UHC13 friendlyfire true"
  216. command "/scoreboard teams option UHC14 friendlyfire true"
  217. command "/scoreboard teams option UHC15 friendlyfire true"
  218. command "/scoreboard teams option UHC16 friendlyfire true"
  219. command "/scoreboard teams option UHC17 friendlyfire true"
  220. command "/scoreboard teams option UHC18 friendlyfire true"
  221. command "/scoreboard teams option UHC19 friendlyfire true"
  222. command "/scoreboard teams option UHC20 friendlyfire true"
  223. command "/scoreboard teams option UHC21 friendlyfire true"
  224. command "/scoreboard teams option UHC22 friendlyfire true"
  225. command "/scoreboard teams option UHC23 friendlyfire true"
  226. command "/scoreboard teams option UHC24 friendlyfire true"
  227. command "/scoreboard teams option UHC25 friendlyfire true"
  228. command "/scoreboard teams option UHC26 friendlyfire true"
  229. command "/scoreboard teams option UHC27 friendlyfire true"
  230. command "/scoreboard teams option UHC28 friendlyfire true"
  231. command "/scoreboard teams option UHC29 friendlyfire true"
  232. command "/scoreboard teams option UHC30 friendlyfire true"
  233. command "/scoreboard teams option UHC31 friendlyfire true"
  234. command "/scoreboard teams option UHC32 friendlyfire true"
  235. command "/scoreboard teams option UHC33 friendlyfire true"
  236. command "/scoreboard teams option UHC34 friendlyfire true"
  237. command "/scoreboard teams option UHC35 friendlyfire true"
  238. command "/scoreboard teams option UHC36 friendlyfire true"
  239. command "/scoreboard teams option UHC37 friendlyfire true"
  240. command "/scoreboard teams option UHC38 friendlyfire true"
  241. command "/scoreboard teams option UHC39 friendlyfire true"
  242. command "/scoreboard teams option UHC40 friendlyfire true"
  243. command "/scoreboard teams option UHC41 friendlyfire true"
  244. command "/scoreboard teams option UHC42 friendlyfire true"
  245. command "/scoreboard teams option UHC43 friendlyfire true"
  246. command "/scoreboard teams option UHC44 friendlyfire true"
  247. command "/scoreboard teams option UHC45 friendlyfire true"
  248. command "/scoreboard teams option UHC46 friendlyfire true"
  249. command "/scoreboard teams option UHC47 friendlyfire true"
  250. command "/scoreboard teams option UHC48 friendlyfire true"
  251. command "/scoreboard teams option UHC49 friendlyfire true"
  252. command "/scoreboard teams option UHC50 friendlyfire true"
  253. command "/scoreboard teams option UHC51 friendlyfire true"
  254. command "/scoreboard teams option UHC52 friendlyfire true"
  255. command "/scoreboard teams option UHC53 friendlyfire true"
  256. command "/scoreboard teams option UHC54 friendlyfire true"
  257. command "/scoreboard teams option UHC55 friendlyfire true"
  258. command "/scoreboard teams option UHC56 friendlyfire true"
  259. command "/scoreboard teams option UHC57 friendlyfire true"
  260. command "/scoreboard teams option UHC58 friendlyfire true"
  261. command "/scoreboard teams option UHC59 friendlyfire true"
  262. command "/scoreboard teams option UHC60 friendlyfire true"
  263. command "/scoreboard teams option UHC61 friendlyfire true"
  264. command "/scoreboard teams option UHC62 friendlyfire true"
  265. command "/scoreboard teams option UHC63 friendlyfire true"
  266. command "/scoreboard teams option UHC64 friendlyfire true"
  267. command "/scoreboard teams option UHC65 friendlyfire true"
  268. command "/scoreboard teams option UHC66 friendlyfire true"
  269. command "/scoreboard teams option UHC67 friendlyfire true"
  270. command "/scoreboard teams option UHC68 friendlyfire true"
  271. command "/scoreboard teams option UHC69 friendlyfire true"
  272. command "/scoreboard teams option UHC70 friendlyfire true"
  273. command "/scoreboard teams option UHC71 friendlyfire true"
  274. command "/scoreboard teams option UHC72 friendlyfire true"
  275. command "/scoreboard teams option UHC73 friendlyfire true"
  276. command "/scoreboard teams option UHC74 friendlyfire true"
  277. command "/scoreboard teams option UHC75 friendlyfire true"
  278. command "/scoreboard teams option UHC76 friendlyfire true"
  279. command "/scoreboard teams option UHC77 friendlyfire true"
  280. command "/scoreboard teams option UHC78 friendlyfire true"
  281. command "/scoreboard teams option UHC79 friendlyfire true"
  282. command "/scoreboard teams option UHC80 friendlyfire true"
  283. command "/scoreboard teams option UHC81 friendlyfire true"
  284. command "/scoreboard teams option UHC82 friendlyfire true"
  285. command "/scoreboard teams option UHC83 friendlyfire true"
  286. command "/scoreboard teams option UHC84 friendlyfire true"
  287. command "/scoreboard teams option UHC85 friendlyfire true"
  288. command "/scoreboard teams option UHC86 friendlyfire true"
  289. command "/scoreboard teams option UHC87 friendlyfire true"
  290. command "/scoreboard teams option UHC88 friendlyfire true"
  291. command "/scoreboard teams option UHC89 friendlyfire true"
  292. command "/scoreboard teams option UHC90 friendlyfire true"
  293. command "/scoreboard teams option UHC91 friendlyfire true"
  294. command "/scoreboard teams option UHC92 friendlyfire true"
  295. command "/scoreboard teams option UHC93 friendlyfire true"
  296. command "/scoreboard teams option UHC94 friendlyfire true"
  297. command "/scoreboard teams option UHC95 friendlyfire true"
  298. command "/scoreboard teams option UHC96 friendlyfire true"
  299. command "/scoreboard teams option UHC97 friendlyfire true"
  300. command "/scoreboard teams option UHC98 friendlyfire true"
  301. command "/scoreboard teams option UHC99 friendlyfire true"
  302. command "/scoreboard teams option UHC100 friendlyfire true"
  303. command "/scoreboard teams option UHC101 friendlyfire true"
  304. command "/scoreboard teams option UHC102 friendlyfire true"
  305. command "/scoreboard teams option UHC103 friendlyfire true"
  306. command "/scoreboard teams option UHC104 friendlyfire true"
  307. command "/scoreboard teams option UHC105 friendlyfire true"
  308. message "{@P} &aFriendly Fire &7has been &aenabled&7!"
  309. else if arg 2 is "off" or "disable" or "false":
  310. set {Teams.FriendlyFire} to false
  311. command "/scoreboard teams option UHC1 friendlyfire false"
  312. command "/scoreboard teams option UHC2 friendlyfire false"
  313. command "/scoreboard teams option UHC3 friendlyfire false"
  314. command "/scoreboard teams option UHC4 friendlyfire false"
  315. command "/scoreboard teams option UHC5 friendlyfire false"
  316. command "/scoreboard teams option UHC6 friendlyfire false"
  317. command "/scoreboard teams option UHC7 friendlyfire false"
  318. command "/scoreboard teams option UHC8 friendlyfire false"
  319. command "/scoreboard teams option UHC9 friendlyfire false"
  320. command "/scoreboard teams option UHC10 friendlyfire false"
  321. command "/scoreboard teams option UHC11 friendlyfire false"
  322. command "/scoreboard teams option UHC12 friendlyfire false"
  323. command "/scoreboard teams option UHC13 friendlyfire false"
  324. command "/scoreboard teams option UHC14 friendlyfire false"
  325. command "/scoreboard teams option UHC15 friendlyfire false"
  326. command "/scoreboard teams option UHC16 friendlyfire false"
  327. command "/scoreboard teams option UHC17 friendlyfire false"
  328. command "/scoreboard teams option UHC18 friendlyfire false"
  329. command "/scoreboard teams option UHC19 friendlyfire false"
  330. command "/scoreboard teams option UHC20 friendlyfire false"
  331. command "/scoreboard teams option UHC21 friendlyfire false"
  332. command "/scoreboard teams option UHC22 friendlyfire false"
  333. command "/scoreboard teams option UHC23 friendlyfire false"
  334. command "/scoreboard teams option UHC24 friendlyfire false"
  335. command "/scoreboard teams option UHC25 friendlyfire false"
  336. command "/scoreboard teams option UHC26 friendlyfire false"
  337. command "/scoreboard teams option UHC27 friendlyfire false"
  338. command "/scoreboard teams option UHC28 friendlyfire false"
  339. command "/scoreboard teams option UHC29 friendlyfire false"
  340. command "/scoreboard teams option UHC30 friendlyfire false"
  341. command "/scoreboard teams option UHC31 friendlyfire false"
  342. command "/scoreboard teams option UHC32 friendlyfire false"
  343. command "/scoreboard teams option UHC33 friendlyfire false"
  344. command "/scoreboard teams option UHC34 friendlyfire false"
  345. command "/scoreboard teams option UHC35 friendlyfire false"
  346. command "/scoreboard teams option UHC36 friendlyfire false"
  347. command "/scoreboard teams option UHC37 friendlyfire false"
  348. command "/scoreboard teams option UHC38 friendlyfire false"
  349. command "/scoreboard teams option UHC39 friendlyfire false"
  350. command "/scoreboard teams option UHC40 friendlyfire false"
  351. command "/scoreboard teams option UHC41 friendlyfire false"
  352. command "/scoreboard teams option UHC42 friendlyfire false"
  353. command "/scoreboard teams option UHC43 friendlyfire false"
  354. command "/scoreboard teams option UHC44 friendlyfire false"
  355. command "/scoreboard teams option UHC45 friendlyfire false"
  356. command "/scoreboard teams option UHC46 friendlyfire false"
  357. command "/scoreboard teams option UHC47 friendlyfire false"
  358. command "/scoreboard teams option UHC48 friendlyfire false"
  359. command "/scoreboard teams option UHC49 friendlyfire false"
  360. command "/scoreboard teams option UHC50 friendlyfire false"
  361. command "/scoreboard teams option UHC51 friendlyfire false"
  362. command "/scoreboard teams option UHC52 friendlyfire false"
  363. command "/scoreboard teams option UHC53 friendlyfire false"
  364. command "/scoreboard teams option UHC54 friendlyfire false"
  365. command "/scoreboard teams option UHC55 friendlyfire false"
  366. command "/scoreboard teams option UHC56 friendlyfire false"
  367. command "/scoreboard teams option UHC57 friendlyfire false"
  368. command "/scoreboard teams option UHC58 friendlyfire false"
  369. command "/scoreboard teams option UHC59 friendlyfire false"
  370. command "/scoreboard teams option UHC60 friendlyfire false"
  371. command "/scoreboard teams option UHC61 friendlyfire false"
  372. command "/scoreboard teams option UHC62 friendlyfire false"
  373. command "/scoreboard teams option UHC63 friendlyfire false"
  374. command "/scoreboard teams option UHC64 friendlyfire false"
  375. command "/scoreboard teams option UHC65 friendlyfire false"
  376. command "/scoreboard teams option UHC66 friendlyfire false"
  377. command "/scoreboard teams option UHC67 friendlyfire false"
  378. command "/scoreboard teams option UHC68 friendlyfire false"
  379. command "/scoreboard teams option UHC69 friendlyfire false"
  380. command "/scoreboard teams option UHC70 friendlyfire false"
  381. command "/scoreboard teams option UHC71 friendlyfire false"
  382. command "/scoreboard teams option UHC72 friendlyfire false"
  383. command "/scoreboard teams option UHC73 friendlyfire false"
  384. command "/scoreboard teams option UHC74 friendlyfire false"
  385. command "/scoreboard teams option UHC75 friendlyfire false"
  386. command "/scoreboard teams option UHC76 friendlyfire false"
  387. command "/scoreboard teams option UHC77 friendlyfire false"
  388. command "/scoreboard teams option UHC78 friendlyfire false"
  389. command "/scoreboard teams option UHC79 friendlyfire false"
  390. command "/scoreboard teams option UHC80 friendlyfire false"
  391. command "/scoreboard teams option UHC81 friendlyfire false"
  392. command "/scoreboard teams option UHC82 friendlyfire false"
  393. command "/scoreboard teams option UHC83 friendlyfire false"
  394. command "/scoreboard teams option UHC84 friendlyfire false"
  395. command "/scoreboard teams option UHC85 friendlyfire false"
  396. command "/scoreboard teams option UHC86 friendlyfire false"
  397. command "/scoreboard teams option UHC87 friendlyfire false"
  398. command "/scoreboard teams option UHC88 friendlyfire false"
  399. command "/scoreboard teams option UHC89 friendlyfire false"
  400. command "/scoreboard teams option UHC90 friendlyfire false"
  401. command "/scoreboard teams option UHC91 friendlyfire false"
  402. command "/scoreboard teams option UHC92 friendlyfire false"
  403. command "/scoreboard teams option UHC93 friendlyfire false"
  404. command "/scoreboard teams option UHC94 friendlyfire false"
  405. command "/scoreboard teams option UHC95 friendlyfire false"
  406. command "/scoreboard teams option UHC96 friendlyfire false"
  407. command "/scoreboard teams option UHC97 friendlyfire false"
  408. command "/scoreboard teams option UHC98 friendlyfire false"
  409. command "/scoreboard teams option UHC99 friendlyfire false"
  410. command "/scoreboard teams option UHC100 friendlyfire false"
  411. command "/scoreboard teams option UHC101 friendlyfire false"
  412. command "/scoreboard teams option UHC102 friendlyfire false"
  413. command "/scoreboard teams option UHC103 friendlyfire false"
  414. command "/scoreboard teams option UHC104 friendlyfire false"
  415. command "/scoreboard teams option UHC105 friendlyfire false"
  416. message "{@P} &aFriendly Fire &7has been &cdisabled&7!"
  417. else:
  418. command sender command "/team"
  419. else if arg 1 is equal to "color" or "colour" or "c":
  420. if command sender does not have the permission "teams.color":
  421. message "{@P} &7Permission denied. &a(missing ""teams.color"")"
  422. else if arg 2 is set:
  423. message "{@P} {@IS}"
  424. else if {Teams::*} is not set:
  425. message "{@P} &7No teams to colour!"
  426. else:
  427. #1-15 [Normal]
  428. command "/scoreboard teams option UHC1 color blue"
  429. command "/scoreboard teams option UHC2 color dark_purple"
  430. command "/scoreboard teams option UHC3 color dark_green"
  431. command "/scoreboard teams option UHC4 color light_purple"
  432. command "/scoreboard teams option UHC5 color aqua"
  433. command "/scoreboard teams option UHC6 color yellow"
  434. command "/scoreboard teams option UHC7 color red"
  435. command "/scoreboard teams option UHC8 color gold"
  436. command "/scoreboard teams option UHC9 color dark_aqua"
  437. command "/scoreboard teams option UHC10 color dark_gray"
  438. command "/scoreboard teams option UHC11 color green"
  439. command "/scoreboard teams option UHC12 color dark_blue"
  440. command "/scoreboard teams option UHC13 color gray"
  441. command "/scoreboard teams option UHC14 color black"
  442. command "/scoreboard teams option UHC15 color white"
  443. #16-30 [Italic]
  444. command "/scoreboard teams option UHC16 color blue"
  445. command "/italic UHC16"
  446. command "/scoreboard teams option UHC17 color dark_purple"
  447. command "/italic UHC17"
  448. command "/scoreboard teams option UHC18 color dark_green"
  449. command "/italic UHC18"
  450. command "/scoreboard teams option UHC19 color light_purple"
  451. command "/italic UHC19"
  452. command "/scoreboard teams option UHC20 color aqua"
  453. command "/italic UHC20"
  454. command "/scoreboard teams option UHC21 color yellow"
  455. command "/italic UHC21"
  456. command "/scoreboard teams option UHC22 color red"
  457. command "/italic UHC22"
  458. command "/scoreboard teams option UHC23 color gold"
  459. command "/italic UHC23"
  460. command "/scoreboard teams option UHC24 color dark_aqua"
  461. command "/italic UHC24"
  462. command "/scoreboard teams option UHC25 color dark_gray"
  463. command "/italic UHC25"
  464. command "/scoreboard teams option UHC26 color green"
  465. command "/italic UHC26"
  466. command "/scoreboard teams option UHC27 color dark_blue"
  467. command "/italic UHC27"
  468. command "/scoreboard teams option UHC28 color gray"
  469. command "/italic UHC28"
  470. command "/scoreboard teams option UHC29 color black"
  471. command "/italic UHC29"
  472. command "/scoreboard teams option UHC30 color white"
  473. command "/italic UHC30"
  474. #31-45 [Underline]
  475. command "/scoreboard teams option UHC31 color blue"
  476. command "/underline UHC31"
  477. command "/scoreboard teams option UHC32 color dark_purple"
  478. command "/underline UHC32"
  479. command "/scoreboard teams option UHC33 color dark_green"
  480. command "/underline UHC33"
  481. command "/scoreboard teams option UHC34 color light_purple"
  482. command "/underline UHC34"
  483. command "/scoreboard teams option UHC35 color aqua"
  484. command "/underline UHC35"
  485. command "/scoreboard teams option UHC36 color yellow"
  486. command "/underline UHC36"
  487. command "/scoreboard teams option UHC37 color red"
  488. command "/underline UHC37"
  489. command "/scoreboard teams option UHC38 color gold"
  490. command "/underline UHC38"
  491. command "/scoreboard teams option UHC39 color dark_aqua"
  492. command "/underline UHC39"
  493. command "/scoreboard teams option UHC40 color dark_gray"
  494. command "/underline UHC40"
  495. command "/scoreboard teams option UHC41 color green"
  496. command "/underline UHC41"
  497. command "/scoreboard teams option UHC42 color dark_blue"
  498. command "/underline UHC42"
  499. command "/scoreboard teams option UHC43 color gray"
  500. command "/underline UHC43"
  501. command "/scoreboard teams option UHC44 color black"
  502. command "/underline UHC44"
  503. command "/scoreboard teams option UHC45 color white"
  504. command "/underline UHC45"
  505. #46-60 [Bold]
  506. command "/scoreboard teams option UHC46 color blue"
  507. command "/bold UHC46"
  508. command "/scoreboard teams option UHC47 color dark_purple"
  509. command "/bold UHC47"
  510. command "/scoreboard teams option UHC48 color dark_green"
  511. command "/bold UHC48"
  512. command "/scoreboard teams option UHC49 color light_purple"
  513. command "/bold UHC49"
  514. command "/scoreboard teams option UHC50 color aqua"
  515. command "/bold UHC50"
  516. command "/scoreboard teams option UHC51 color yellow"
  517. command "/bold UHC51"
  518. command "/scoreboard teams option UHC52 color red"
  519. command "/bold UHC52"
  520. command "/scoreboard teams option UHC53 color gold"
  521. command "/bold UHC53"
  522. command "/scoreboard teams option UHC54 color dark_aqua"
  523. command "/bold UHC54"
  524. command "/scoreboard teams option UHC55 color dark_gray"
  525. command "/bold UHC55"
  526. command "/scoreboard teams option UHC56 color green"
  527. command "/bold UHC56"
  528. command "/scoreboard teams option UHC57 color dark_blue"
  529. command "/bold UHC57"
  530. command "/scoreboard teams option UHC58 color gray"
  531. command "/bold UHC58"
  532. command "/scoreboard teams option UHC59 color black"
  533. command "/bold UHC59"
  534. command "/scoreboard teams option UHC60 color white"
  535. command "/bold UHC60"
  536. #61-75 [Strikethrough]
  537. command "/scoreboard teams option UHC61 color blue"
  538. command "/strikethrough UHC61"
  539. command "/scoreboard teams option UHC62 color dark_purple"
  540. command "/strikethrough UHC62"
  541. command "/scoreboard teams option UHC63 color dark_green"
  542. command "/strikethrough UHC63"
  543. command "/scoreboard teams option UHC64 color light_purple"
  544. command "/strikethrough UHC64"
  545. command "/scoreboard teams option UHC65 color aqua"
  546. command "/strikethrough UHC65"
  547. command "/scoreboard teams option UHC66 color yellow"
  548. command "/strikethrough UHC66"
  549. command "/scoreboard teams option UHC67 color red"
  550. command "/strikethrough UHC67"
  551. command "/scoreboard teams option UHC68 color gold"
  552. command "/strikethrough UHC68"
  553. command "/scoreboard teams option UHC69 color dark_aqua"
  554. command "/strikethrough UHC69"
  555. command "/scoreboard teams option UHC70 color dark_gray"
  556. command "/strikethrough UHC70"
  557. command "/scoreboard teams option UHC71 color green"
  558. command "/strikethrough UHC71"
  559. command "/scoreboard teams option UHC72 color dark_blue"
  560. command "/strikethrough UHC72"
  561. command "/scoreboard teams option UHC73 color gray"
  562. command "/strikethrough UHC73"
  563. command "/scoreboard teams option UHC74 color black"
  564. command "/strikethrough UHC74"
  565. command "/scoreboard teams option UHC75 color white"
  566. command "/strikethrough UHC75"
  567. #76-90 [Italic-Strikethrough]
  568. command "/scoreboard teams option UHC76 color blue"
  569. command "/strikethrough UHC76"
  570. command "/italic UHC76"
  571. command "/scoreboard teams option UHC77 color dark_purple"
  572. command "/strikethrough UHC77"
  573. command "/italic UHC77"
  574. command "/scoreboard teams option UHC78 color dark_green"
  575. command "/strikethrough UHC78"
  576. command "/italic UHC78"
  577. command "/scoreboard teams option UHC79 color light_purple"
  578. command "/strikethrough UHC79"
  579. command "/italic UHC79"
  580. command "/scoreboard teams option UHC80 color aqua"
  581. command "/strikethrough UHC80"
  582. command "/italic UHC80"
  583. command "/scoreboard teams option UHC81 color yellow"
  584. command "/strikethrough UHC81"
  585. command "/italic UHC81"
  586. command "/scoreboard teams option UHC82 color red"
  587. command "/strikethrough UHC82"
  588. command "/italic UHC82"
  589. command "/scoreboard teams option UHC83 color gold"
  590. command "/strikethrough UHC83"
  591. command "/italic UHC83"
  592. command "/scoreboard teams option UHC84 color dark_aqua"
  593. command "/strikethrough UHC84"
  594. command "/italic UHC85"
  595. command "/scoreboard teams option UHC85 color dark_gray"
  596. command "/strikethrough UHC85"
  597. command "/italic UHC85"
  598. command "/scoreboard teams option UHC86 color green"
  599. command "/strikethrough UHC86"
  600. command "/italic UHC86"
  601. command "/scoreboard teams option UHC87 color dark_blue"
  602. command "/strikethrough UHC87"
  603. command "/italic UHC87"
  604. command "/scoreboard teams option UHC88 color gray"
  605. command "/strikethrough UHC88"
  606. command "/italic UHC88"
  607. command "/scoreboard teams option UHC89 color black"
  608. command "/strikethrough UHC89"
  609. command "/italic UHC89"
  610. command "/scoreboard teams option UHC90 color white"
  611. command "/strikethrough UHC90"
  612. command "/italic UHC90"
  613. #91-105 [Italic-Underline]
  614. command "/scoreboard teams option UHC91 color blue"
  615. command "/underline UHC91"
  616. command "/italic UHC91"
  617. command "/scoreboard teams option UHC92 color dark_purple"
  618. command "/underline UHC92"
  619. command "/italic UHC92"
  620. command "/scoreboard teams option UHC93 color dark_green"
  621. command "/underline UHC93"
  622. command "/italic UHC93"
  623. command "/scoreboard teams option UHC94 color light_purple"
  624. command "/underline UHC94"
  625. command "/italic UHC94"
  626. command "/scoreboard teams option UHC95 color aqua"
  627. command "/underline UHC95"
  628. command "/italic UHC95"
  629. command "/scoreboard teams option UHC96 color yellow"
  630. command "/underline UHC96"
  631. command "/italic UHC96"
  632. command "/scoreboard teams option UHC97 color red"
  633. command "/underline UHC97"
  634. command "/italic UHC97"
  635. command "/scoreboard teams option UHC98 color gold"
  636. command "/underline UHC98"
  637. command "/italic UHC98"
  638. command "/scoreboard teams option UHC99 color dark_aqua"
  639. command "/underline UHC99"
  640. command "/italic UHC100"
  641. command "/scoreboard teams option UHC100 color dark_gray"
  642. command "/underline UHC100"
  643. command "/italic UHC100"
  644. command "/scoreboard teams option UHC101 color green"
  645. command "/underline UHC101"
  646. command "/italic UHC101"
  647. command "/scoreboard teams option UHC102 color dark_blue"
  648. command "/underline UHC102"
  649. command "/italic UHC102"
  650. command "/scoreboard teams option UHC103 color gray"
  651. command "/underline UHC103"
  652. command "/italic UHC103"
  653. command "/scoreboard teams option UHC104 color black"
  654. command "/underline UHC104"
  655. command "/italic UHC104"
  656. command "/scoreboard teams option UHC105 color white"
  657. command "/underline UHC105"
  658. command "/italic UHC105"
  659. else if arg 1 is equal to "oldcolor" or "oldcolour" or "oc":
  660. if command sender does not have the permission "skript.op":
  661. message "{@P} &7Permission denied. &a(missing ""teams.color"")"
  662. else if arg 2 is set:
  663. message "{@P} {@IS}"
  664. else if {Teams::*} is not set:
  665. message "{@P} &7No teams to color!"
  666. else:
  667. if (size of {Teams::*}) is smaller than 16:
  668. set {_Colors::*} to "aqua", "black", "blue", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "light_purple", "red" and "yellow"
  669. else:
  670. set {_Colors::*} to "aqua", "black", "blue", "bold", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "italic", "light_purple", "red", and "yellow"
  671. set {_Other.Colors::*} to "aqua", "black", "blue", "bold", "dark_aqua", "dark_blue", "dark_gray", "dark_green", "dark_purple", "dark_red", "gold", "gray", "green", "italic", "light_purple", "red", and "yellow"
  672. set {_Format.Codes::*} to "italic", "bold", "strikethrough", and "underline"
  673. loop {Teams::*}:
  674. if loop-value is less than or equal to 17:
  675. set {_Color} to (random element out of {_Colors::*})
  676. remove {_Color} from {_Colors::*}
  677. command "/scoreboard teams option UHC%loop-value% color %{_Color}%"
  678. replace all "_" with " " in {_Color}
  679. loop {Team.%loop-value%::*}:
  680. message "{@P} &7Your Team color is <%{_Color}%>%{_Color}%&7!" to ("%loop-value-2%" parsed as offlineplayer)
  681. else:
  682. delete {_Colors::*}
  683. set {_Color} to (random element out of {_Other.Colors::*})
  684. set {_Format} to (random element out of {_Format.Codes::*})
  685. remove {_Color} from {_Other.Colors::*}
  686. command "/scoreboard teams option UHC%loop-value% color %{_Color}%"
  687. replace all "_" with " " in {_Color}
  688. loop {Team.%loop-value%::*}:
  689. message "{@P} &7Your Team color is <%{_Color}%><%{_Format}%>%{_Format}% %{_Color}%&7!" to ("%loop-value-2%" parsed as offlineplayer)
  690. execute console command "/%{_Format}% UHC%loop-value%"
  691. message "{@P} &7Colored all teams!"
  692. loop all players:
  693. loop-player has the permission "skript.op"
  694. loop-player is not command sender
  695. message "{@P} {@N} &7Colored all teams!" to loop-player
  696. else if arg 1 is equal to "uncolor" or "uncolour" or "unc" or "uc":
  697. if command sender does not have the permission "skript.op":
  698. message "{@P} &4Permission denied. &a(missing ""teams.uncolor"")"
  699. else if arg 2 is set:
  700. message "{@P} {@IS}"
  701. else if {Teams::*} is not set:
  702. message "{@P} &7No teams to uncolor!"
  703. else:
  704. loop {Teams::*}:
  705. command "/scoreboard teams option UHC%loop-value% color reset"
  706. loop {Team.%loop-value%::*}:
  707. message "{@P} &7Your Team color was removed." to ("%loop-value-2%" parsed as offlineplayer)
  708. message "{@P} &7Uncolored all teams"
  709. loop all players:
  710. loop-player has the permission "skript.op"
  711. loop-player is not command sender
  712. message "{@P} {@N} &7Uncolored all teams" to loop-player
  713. else if arg 1 is equal to "solos" or "solo":
  714. if command sender does not have the permission "skript.op":
  715. message "{@P} &4Permission denied. &a(missing ""teams.solos"")"
  716. else if arg 2 is set:
  717. message "{@P} {@IS}"
  718. else:
  719. loop all players:
  720. {Teams.InTeam::%loop-player%} is not set
  721. add (name of loop-player) to {_Solos::*}
  722. if {_Solos::*} is not set:
  723. message "{@P} &7There're no solos!"
  724. else:
  725. message "{@P} &7Solos (%size of {_Solos::*}%): &a%join {_Solos::*} with "", ""%"
  726. else if arg 1 is equal to "soloinform":
  727. if command sender does not have the permission "skript.op":
  728. message "{@P} &4Permission denied. &r(missing ""skript.op"")"
  729. else if arg 2 is set:
  730. message "{@P} {@IS}"
  731. else:
  732. loop all players:
  733. loop-player is not command sender
  734. if {Teams.InTeam::%loop-player%} is not set:
  735. command "/playsound note.pling %loop-player%"
  736. message "{@P} &7If you have a set team, please &a/uhcteam&7 to create it." to loop-player
  737. if loop-player has the permission "skript.op":
  738. message "{@P} {@N} &7Informed Solos" to loop-player
  739. message "{@P} &7Informed Solos!"
  740. else if arg 1 is equal to "rebuild":
  741. if command sender does not have the permission "teams.rebuild":
  742. message "{@P} &4Permission denied. &a(missing ""teams.rebuild"")"
  743. else if arg 2 is set:
  744. message "{@P} {@IS}"
  745. else:
  746. set {_TeamCount} to 0
  747. delete {Teams.InTeam::*}
  748. loop {Teams::*}:
  749. if (size of {Team.%loop-value%::*}) is not equal to 0:
  750. set {_TeamCount} to {_TeamCount}+1
  751. set {_New.Team.%{_TeamCount}%::*} to {Team.%loop-value%::*}
  752. set {_New.Teams::%{_TeamCount}%} to {_TeamCount}
  753. delete {Team.%loop-value%::*}
  754. command "/scoreboard teams remove UHC%loop-value%"
  755. delete {Teams::*}
  756. set {Teams::*} to {_New.Teams::*}
  757. loop {Teams::*}:
  758. command "/scoreboard teams add UHC%loop-value%"
  759. if {Teams.FriendlyFire} is set:
  760. command "/scoreboard teams option UHC%loop-value% friendlyfire false"
  761. set {Team.%loop-value%::*} to {_New.Team.%loop-value%::*}
  762. loop {Team.%loop-value%::*}:
  763. set {Teams.InTeam::%loop-value-2%} to loop-value-1
  764. command "/scoreboard teams join UHC%loop-value-1% %loop-value-2%"
  765. message "{@P} &7Issued Rebuild!"
  766. loop all players:
  767. loop-player has the permission "skript.op"
  768. loop-player is not command sender
  769. message "{@P} {@N} &7Issued Rebuild" to loop-player
  770. else if arg 1 is equal to "random":
  771. if command sender does not have the permission "teams.random":
  772. message "{@P} &4Permission denied. &a(missing ""teams.random"")"
  773. else if arg 2 is not set:
  774. message "{@P} {@IS}"
  775. else if arg 3 is not set:
  776. message "{@P} {@IS}"
  777. else:
  778. set {_TeamSize} to ("%arg 2%" parsed as integer)
  779. set {_TeamAmount} to ("%arg 3%" parsed as integer)
  780. if {_TeamSize} is not set:
  781. message "{@P} {@IS}"
  782. else if {_TeamAmount} is not set:
  783. message "{@P} {@IS}"
  784. else if {_TeamSize} is less than 1:
  785. message "{@P} {@IS}"
  786. else if {_TeamAmount} is less than 1:
  787. message "{@P} {@IS}"
  788. else:
  789. loop all players:
  790. {Teams.InTeam::%loop-player%} is not set
  791. {Spectator::%loop-player%} is not set
  792. add (name of loop-player) to {_Players::*}
  793. if ({_TeamSize}*{_TeamAmount}) is not equal to (size of {_Players::*}):
  794. message "{@P} &7The amount of people does not match."
  795. else:
  796. loop {Teams::*}:
  797. command "/scoreboard teams remove UHC%loop-value%"
  798. delete {Team.%loop-value%::*}
  799. delete {Teams.InTeam::*}
  800. delete {Teams::*}
  801. broadcast "{@P} &7Randomizing &a%arg 3% teams &7of &a%arg 2%&7..."
  802. loop all players:
  803. command "/playsound note.harp %loop-player%"
  804. wait 10 ticks
  805. loop {_TeamAmount} times:
  806. command "/scoreboard teams add UHC%loop-number%"
  807. if {Teams.FriendlyFire} is set:
  808. command "/scoreboard teams option UHC%loop-number% friendlyfire false"
  809. set {Teams::%loop-number%} to loop-number
  810. loop {_TeamSize} times:
  811. set {_Player} to (random element out of {_Players::*})
  812. remove {_Player} from {_Players::*}
  813. command "/scoreboard teams join UHC%loop-number-1% %{_Player}%"
  814. add {_Player} to {Team.%loop-number-1%::*}
  815. set {Teams.InTeam::%{_Player}%} to loop-number-1
  816. broadcast "{@P} &7Teams have been randomized!"
  817. loop all players:
  818. command "/playsound random.explode %loop-player%"
  819. else if arg 1 is equal to "newrandom":
  820. if command sender does not have the permission "teams.random":
  821. message "{@P} &4Permission denied. &a(missing ""teams.random"")"
  822. else if arg 2 is not set:
  823. message "{@P} {@IS}"
  824. else if arg 3 is not set:
  825. message "{@P} {@IS}"
  826. else:
  827. set {_TeamSize} to ("%arg 2%" parsed as integer)
  828. set {_TeamAmount} to ("%arg 3%" parsed as integer)
  829. if {_TeamSize} is not set:
  830. message "{@P} {@IS}"
  831. else if {_TeamAmount} is not set:
  832. message "{@P} {@IS}"
  833. else if {_TeamSize} is less than 1:
  834. message "{@P} {@IS}"
  835. else if {_TeamAmount} is less than 1:
  836. message "{@P} {@IS}"
  837. else:
  838. loop all players:
  839. {Teams.InTeam::%loop-player%} is not set
  840. {Spectator::%loop-player%} is not set
  841. add (name of loop-player) to {_Players::*}
  842. if ({_TeamSize}*{_TeamAmount}) is not equal to (size of {_Players::*}):
  843. message "{@P} &7The amount of people does not match."
  844. else:
  845. loop {Teams::*}:
  846. command "/scoreboard teams remove UHC%loop-value%"
  847. delete {Team.%loop-value%::*}
  848. delete {Teams.InTeam::*}
  849. delete {Teams::*}
  850. broadcast "{@P} &7Randomizing &a%arg 3% teams &7of &a%arg 2%&7..."
  851. loop all players:
  852. command "/playsound note.harp %loop-player%"
  853. wait 10 ticks
  854. loop {_TeamAmount} times:
  855. command "/scoreboard teams add UHC%loop-number%"
  856. if {Teams.FriendlyFire} is set:
  857. command "/scoreboard teams option UHC%loop-number% friendlyfire false"
  858. set {Teams::%loop-number%} to loop-number
  859. loop {_TeamSize} times:
  860. set {_Player} to (random element out of {_Players::*})
  861. remove {_Player} from {_Players::*}
  862. command "/scoreboard teams join UHC%loop-number-1% %{_Player}%"
  863. add {_Player} to {Team.%loop-number-1%::*}
  864. set {Teams.InTeam::%{_Player}%} to loop-number-1
  865. loop {Teams::*}:
  866. broadcast "&2&k&lX &r&7&lTEAM %loop-value% &r&2&k&lX"
  867. command "/scatter-playsound random.explode 1"
  868. wait 0.75 seconds
  869. loop {Team.%loop-value%::*}:
  870. broadcast "&7%loop-value-2%"
  871. command "/warp fteam%loop-value-1% %loop-value-2%"
  872. command "/scatter-playsound note.pling 1"
  873. wait 0.4 seconds
  874. else if arg 1 is equal to "reset":
  875. if command sender does not have the permission "teams.reset":
  876. message "{@P} &4Permission denied. &a(missing ""teams.reset"")"
  877. else if arg 2 is set:
  878. message "{@P} {@IS}"
  879. else:
  880. loop {Teams::*}:
  881. loop {Team.%loop-value%::*}:
  882. loop-value-2 is not equal to command sender
  883. message "{@P} &7Your team was deleted in a global reset." to ("%loop-value-2%" parsed as offlineplayer)
  884. command "/scoreboard teams remove UHC%loop-value%"
  885. delete {Team.%loop-value%::*}
  886. delete {Team.<none>::*}
  887. delete {Teams::*}
  888. delete {Teams.InTeam::*}
  889. delete {Teams.Final}
  890. delete {Teams::PendingInvitesRecieved::*}
  891. delete {Teams::PendingInviteList::*}
  892. delete {PMSocialSpy::*}
  893. message "{@P} &7All teams reset!"
  894. loop all players:
  895. loop-player has the permission "teams.reset.notify"
  896. loop-player is not command sender
  897. message "{@P} {@N} &7Reset all teams" to loop-player
  898. else:
  899. command sender command "/team help"
  900.  
  901. command /pm <text>:
  902. executable by: players
  903. aliases: /tc
  904. trigger:
  905. if {Teams.InTeam::%command sender%} is not set:
  906. message "{@P} &7You're not in a team!"
  907. else:
  908. set {_Team} to {Teams.InTeam::%command sender%}
  909. loop all players:
  910. if {Teams.InTeam::%loop-player%} is equal to {_Team}:
  911. message "{@P} &a&o%command sender%&7&o: &r%arg-1%" to loop-player
  912. else if {PMSocialSpy::%loop-player%} is true:
  913. message "{@P} [&a%{_Team}%&r] &a&o%command sender%&7&o: &r%arg-1%" to loop-player
  914.  
  915. command /pms:
  916. aliases: /pmsocialspy
  917. permission: skript.pmsocialspy
  918. trigger:
  919. if {PMSocialSpy::%command sender%} is not set:
  920. set {PMSocialSpy::%command sender%} to true
  921. message "{@P} &7Team SocialSpy has been &aenabled&7!"
  922. else:
  923. delete {PMSocialSpy::%command sender%}
  924. message "{@P} &7Team SocialSpy has been &cdisabled&7!"
  925.  
  926. command /fpm <text> <text>:
  927. aliases: /forcepm
  928. permission: skript.forcepm
  929. trigger:
  930. set {_Number} to ("%arg 1%" parsed as integer)
  931. if {_Number} is set:
  932. if {Teams::%arg 1%} is not set:
  933. message "{@P} &7Team &a%arg 1% &7not defined!"
  934. else:
  935. message "{@P} &c&o%command sender%&7&o: &r%arg-1%"
  936. loop all players:
  937. {Teams.InTeam::%loop-player%} is equal to {_Number}
  938. loop-player is not command sender
  939. message "{@P} &c&o%command sender%&7&o: &r%arg-1%" to loop-player
  940. else:
  941. if {Teams.InTeam::%arg 1%} is not set:
  942. message "{@P} &a%arg 1% &7is not on a team!"
  943. else:
  944. message "{@P} &c&o%command sender%&7&o: &r%arg-1%"
  945. loop all players:
  946. {Teams.InTeam::%loop-player%} is equal to {Teams.InTeam::%arg 1%}
  947. loop-player is not command sender
  948. message "{@P} &c&o%command sender%&7&o: &r%arg 1%" to loop-player
  949.  
  950. command /pmcoords:
  951. aliases: /pmcoord, /pmcoordinate, /teamcoords, /pml, /tl, /pcoords, /teamcoord, /teamloc
  952. executable by: players
  953. trigger:
  954. set {_zloc} to rounded z coord of command sender
  955. set {_xloc} to rounded x coord of command sender
  956. set {_yloc} to rounded y coord of command sender
  957. if {Teams.InTeam::%command sender%} is not set:
  958. message "{@P} &7You're not on a team!"
  959. else:
  960. set {_Team} to {Teams.InTeam::%command sender%}
  961. loop all players:
  962. if {Teams.InTeam::%loop-player%} is equal to {_Team}:
  963. message "{@P} &a&o%command sender%&7&o: &7&lX:&a %{_xloc}% &7&lY:&a %{_yloc}% &7&lZ:&a %{_zloc}%" to loop-player
  964.  
  965. command /ct <text> <text> [<text>] [<text>] [<text>] [<text>]:
  966. permission: skript.op
  967. usage: /ct <players> [up to 6]
  968. trigger:
  969. add (arg 1) to {_ThisTeam::*}
  970. add (arg 2) to {_ThisTeam::*}
  971. if arg 3 is set:
  972. add (arg 3) to {_ThisTeam::*}
  973. if arg 4 is set:
  974. add (arg 4) to {_ThisTeam::*}
  975. if arg 5 is set:
  976. add (arg 5) to {_ThisTeam::*}
  977. if arg 6 is set:
  978. add (arg 6) to {_ThisTeam::*}
  979. loop {_ThisTeam::*}:
  980. {Teams.InTeam::%loop-value%} is set
  981. add loop-value to {_AlreadyOnTeam::*}
  982. if {_AlreadyOnTeam::*} is set:
  983. message "{@P} &7The following players are already on a team:"
  984. message "{@P} &a%join {_AlreadyOnTeam::*} with "", ""%"
  985. else:
  986. set {_TeamNumber} to 1
  987. while {Teams::%{_TeamNumber}%} is set:
  988. set {_TeamNumber} to {_TeamNumber}+1
  989. set {Teams::%{_TeamNumber}%} to {_TeamNumber}
  990. command "/scoreboard teams add UHC%{_TeamNumber}%"
  991. if {Teams.FriendlyFire} is set:
  992. command "/scoreboard teams option UHC%{_TeamNumber}% friendlyfire false"
  993. loop {_ThisTeam::*}:
  994. set {Teams.InTeam::%loop-value%} to {_TeamNumber}
  995. add "%loop-value%" to {Team.%{_TeamNumber}%::*}
  996. command "/scoreboard teams join UHC%{_TeamNumber}% %loop-value%"
  997. set {_Buffer} to ""
  998. loop {_ThisTeam::*}:
  999. set {_Player} to ("%loop-value%" parsed as offlineplayer)
  1000. if {_Player} is online:
  1001. set {_Buffer} to "%{_Buffer}%&a%loop-value% "
  1002. else:
  1003. set {_Buffer} to "%{_Buffer}%&c%loop-value% "
  1004. command "/wl add %loop-value%"
  1005. loop {_ThisTeam::*}:
  1006. set {_Player} to ("%loop-value%" parsed as offlineplayer)
  1007. command "/playsound note.pling %loop-value%"
  1008. message "{@P} &7You are now on a team with the following people:" to {_Player}
  1009. message "{@P} &a%{_Buffer}%" to {_Player}
  1010. message "{@P} &7If this was a mistake, please /helpop your full team." to {_Player}
  1011. message "{@P} &7Created a team with the following members:"
  1012. message "{@P} &a%{_Buffer}%"
  1013. loop all players:
  1014. loop-player has the permission "skript.op"
  1015. loop-player is not command sender
  1016. message "{@P} {@N} &7Created team with members:" to loop-player
  1017. message "{@P} &a%{_Buffer}%" to loop-player
  1018.  
  1019. command /pmorecount:
  1020. aliases: /pmironcount, /pmiron, /pmgold, /pmgoldcount, /pmdiamond, /pmdiamondcount, /pmore, /pmdiamonds, /pmores
  1021. executable by: players
  1022. trigger:
  1023. if {Teams.InTeam::%command sender%} is not set:
  1024. message "{@P} &7You're not on a team!"
  1025. else:
  1026. set {_goldi} to the number of gold ingots in command sender's inventory
  1027. set {_goldo} to the number of gold ore in the command sender's inventory
  1028. set {_goldn} to the number of gold nuggets in the command sender's inventory
  1029. set {_goldb} to the number of gold blocks in the command sender's inventory
  1030. set {_diag} to the number of diamonds in command sender's inventory
  1031. set {_diab} to the number of diamond blocks in command sender's inventory
  1032. set {_ironi} to the number of iron ingots in command sender's inventory
  1033. set {_irono} to the number of iron ore in command sender's inventory
  1034. set {_ironb} to the number of iron blocks in command sender's inventory
  1035. set {_Team} to {Teams.InTeam::%command sender%}
  1036. loop all players:
  1037. if {Teams.InTeam::%loop-player%} is equal to {_Team}:
  1038. message "{@P} &a&o%command sender% &7&ohas &6%{_goldi}+{_goldo}+({_goldn}/9)+({_goldb}*9)% gold&7, &b%{_diag}+({_diab}*9)% diamonds &7& %{_ironi}+{_irono}+({_ironb}*9)% iron" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement