Guest User

Team Manager

a guest
May 25th, 2014
1,395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. # Team Manager skript by dvwinn
  2. # Feel free to edit for personal use
  3.  
  4. options:
  5. permission : skript.teammanager
  6. prefix : &8[&7Teams&8]&7
  7.  
  8. command /team <text> [<text>] [<text>] [<text>] [<text>] [<text>]:
  9. description: Team Manager
  10. usage: /team <command> [<person>] [<person>] [<person>] [<person>] [<person>]
  11. permission: {@permission}
  12. permission message: §4You don't have permission to use this command
  13. aliases: /
  14. executable by: players and console
  15. trigger:
  16. if arg 1 is "reset":
  17. make player execute command "/clearteams"
  18. loop 20 times:
  19. make player execute command "/uhccreateteam"
  20. broadcast "{@prefix} Teams reset"
  21.  
  22. else if arg 1 is "colour":
  23. make player execute command "/scoreboard teams option UHC0 color aqua"
  24. make player execute command "/scoreboard teams option UHC1 color blue"
  25. make player execute command "/scoreboard teams option UHC2 color black"
  26. make player execute command "/scoreboard teams option UHC3 color bold"
  27. make player execute command "/scoreboard teams option UHC4 color dark_aqua"
  28. make player execute command "/scoreboard teams option UHC5 color dark_blue"
  29. make player execute command "/scoreboard teams option UHC6 color dark_gray"
  30. make player execute command "/scoreboard teams option UHC7 color dark_green"
  31. make player execute command "/scoreboard teams option UHC8 color dark_purple"
  32. make player execute command "/scoreboard teams option UHC9 color dark_red"
  33. make player execute command "/scoreboard teams option UHC10 color gold"
  34. make player execute command "/scoreboard teams option UHC11 color gray"
  35. make player execute command "/scoreboard teams option UHC12 color green"
  36. make player execute command "/scoreboard teams option UHC13 color light_purple"
  37. make player execute command "/scoreboard teams option UHC14 color italic"
  38. make player execute command "/scoreboard teams option UHC15 color red"
  39. make player execute command "/scoreboard teams option UHC16 color strikethrough"
  40. make player execute command "/scoreboard teams option UHC17 color white"
  41. make player execute command "/scoreboard teams option UHC18 color yellow"
  42. make player execute command "/scoreboard teams option UHC19 color underline"
  43. broadcast "{@prefix} Team colours added"
  44.  
  45. else if arg 1 is "color":
  46. make player execute command "/scoreboard teams option UHC0 color aqua"
  47. make player execute command "/scoreboard teams option UHC1 color blue"
  48. make player execute command "/scoreboard teams option UHC2 color black"
  49. make player execute command "/scoreboard teams option UHC3 color bold"
  50. make player execute command "/scoreboard teams option UHC4 color dark_aqua"
  51. make player execute command "/scoreboard teams option UHC5 color dark_blue"
  52. make player execute command "/scoreboard teams option UHC6 color dark_gray"
  53. make player execute command "/scoreboard teams option UHC7 color dark_green"
  54. make player execute command "/scoreboard teams option UHC8 color dark_purple"
  55. make player execute command "/scoreboard teams option UHC9 color dark_red"
  56. make player execute command "/scoreboard teams option UHC10 color gold"
  57. make player execute command "/scoreboard teams option UHC11 color gray"
  58. make player execute command "/scoreboard teams option UHC12 color green"
  59. make player execute command "/scoreboard teams option UHC13 color light_purple"
  60. make player execute command "/scoreboard teams option UHC14 color italic"
  61. make player execute command "/scoreboard teams option UHC15 color red"
  62. make player execute command "/scoreboard teams option UHC16 color strikethrough"
  63. make player execute command "/scoreboard teams option UHC17 color white"
  64. make player execute command "/scoreboard teams option UHC18 color yellow"
  65. make player execute command "/scoreboard teams option UHC19 color underline"
  66. broadcast "{@prefix} Team colors added"
  67.  
  68. else if arg 1 is "help":
  69. message "{@prefix} Available commands:" to command sender
  70. message "/team reset" to command sender
  71. message "/team colour" to command sender
  72. message "/team <number> <players>" to command sender
  73.  
  74. else:
  75. if arg 2 is set:
  76. command "/jointeam UHC%arg 1% %arg 2%"
  77. message "{@prefix} %arg 2% added to team %arg 1%" to command sender
  78. if arg 3 is set:
  79. command "/jointeam UHC%arg 1% %arg 3%"
  80. message "{@prefix} %arg 3% added to team %arg 1%" to command sender
  81. if arg 4 is set:
  82. command "/jointeam UHC%arg 1% %arg 4%"
  83. message "{@prefix} %arg 4% added to team %arg 1%" to command sender
  84. if arg 5 is set:
  85. command "/jointeam UHC%arg 1% %arg 5%"
  86. message "{@prefix} %arg 5% added to team %arg 1%" to command sender
  87. if arg 6 is set:
  88. command "/jointeam UHC%arg 1% %arg 6%"
  89. message "{@prefix} %arg 6% added to team %arg 1%" to command sender
  90. else:
  91. message "{@prefix} Please set people to add to that team" to command sender
Advertisement
Add Comment
Please, Sign In to add comment