Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Team Manager skript by dvwinn
- # Feel free to edit for personal use
- options:
- permission : skript.teammanager
- prefix : &8[&7Teams&8]&7
- command /team <text> [<text>] [<text>] [<text>] [<text>] [<text>]:
- description: Team Manager
- usage: /team <command> [<person>] [<person>] [<person>] [<person>] [<person>]
- permission: {@permission}
- permission message: §4You don't have permission to use this command
- aliases: /
- executable by: players and console
- trigger:
- if arg 1 is "reset":
- make player execute command "/clearteams"
- loop 20 times:
- make player execute command "/uhccreateteam"
- broadcast "{@prefix} Teams reset"
- else if arg 1 is "colour":
- make player execute command "/scoreboard teams option UHC0 color aqua"
- make player execute command "/scoreboard teams option UHC1 color blue"
- make player execute command "/scoreboard teams option UHC2 color black"
- make player execute command "/scoreboard teams option UHC3 color bold"
- make player execute command "/scoreboard teams option UHC4 color dark_aqua"
- make player execute command "/scoreboard teams option UHC5 color dark_blue"
- make player execute command "/scoreboard teams option UHC6 color dark_gray"
- make player execute command "/scoreboard teams option UHC7 color dark_green"
- make player execute command "/scoreboard teams option UHC8 color dark_purple"
- make player execute command "/scoreboard teams option UHC9 color dark_red"
- make player execute command "/scoreboard teams option UHC10 color gold"
- make player execute command "/scoreboard teams option UHC11 color gray"
- make player execute command "/scoreboard teams option UHC12 color green"
- make player execute command "/scoreboard teams option UHC13 color light_purple"
- make player execute command "/scoreboard teams option UHC14 color italic"
- make player execute command "/scoreboard teams option UHC15 color red"
- make player execute command "/scoreboard teams option UHC16 color strikethrough"
- make player execute command "/scoreboard teams option UHC17 color white"
- make player execute command "/scoreboard teams option UHC18 color yellow"
- make player execute command "/scoreboard teams option UHC19 color underline"
- broadcast "{@prefix} Team colours added"
- else if arg 1 is "color":
- make player execute command "/scoreboard teams option UHC0 color aqua"
- make player execute command "/scoreboard teams option UHC1 color blue"
- make player execute command "/scoreboard teams option UHC2 color black"
- make player execute command "/scoreboard teams option UHC3 color bold"
- make player execute command "/scoreboard teams option UHC4 color dark_aqua"
- make player execute command "/scoreboard teams option UHC5 color dark_blue"
- make player execute command "/scoreboard teams option UHC6 color dark_gray"
- make player execute command "/scoreboard teams option UHC7 color dark_green"
- make player execute command "/scoreboard teams option UHC8 color dark_purple"
- make player execute command "/scoreboard teams option UHC9 color dark_red"
- make player execute command "/scoreboard teams option UHC10 color gold"
- make player execute command "/scoreboard teams option UHC11 color gray"
- make player execute command "/scoreboard teams option UHC12 color green"
- make player execute command "/scoreboard teams option UHC13 color light_purple"
- make player execute command "/scoreboard teams option UHC14 color italic"
- make player execute command "/scoreboard teams option UHC15 color red"
- make player execute command "/scoreboard teams option UHC16 color strikethrough"
- make player execute command "/scoreboard teams option UHC17 color white"
- make player execute command "/scoreboard teams option UHC18 color yellow"
- make player execute command "/scoreboard teams option UHC19 color underline"
- broadcast "{@prefix} Team colors added"
- else if arg 1 is "help":
- message "{@prefix} Available commands:" to command sender
- message "/team reset" to command sender
- message "/team colour" to command sender
- message "/team <number> <players>" to command sender
- else:
- if arg 2 is set:
- command "/jointeam UHC%arg 1% %arg 2%"
- message "{@prefix} %arg 2% added to team %arg 1%" to command sender
- if arg 3 is set:
- command "/jointeam UHC%arg 1% %arg 3%"
- message "{@prefix} %arg 3% added to team %arg 1%" to command sender
- if arg 4 is set:
- command "/jointeam UHC%arg 1% %arg 4%"
- message "{@prefix} %arg 4% added to team %arg 1%" to command sender
- if arg 5 is set:
- command "/jointeam UHC%arg 1% %arg 5%"
- message "{@prefix} %arg 5% added to team %arg 1%" to command sender
- if arg 6 is set:
- command "/jointeam UHC%arg 1% %arg 6%"
- message "{@prefix} %arg 6% added to team %arg 1%" to command sender
- else:
- message "{@prefix} Please set people to add to that team" to command sender
Advertisement
Add Comment
Please, Sign In to add comment