Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- n: &8[&6&lPickedTeams&8]&c
- command /pickedteams <integer> <player>:
- permission: skript.captains
- usage: /pickedteams <teamnumber> <player>
- trigger:
- if arg 1 < 1:
- message "{@n} Must be 1-8!"
- if arg 1 > 8:
- message "{@n} Must be 1-8!"
- else if arg 1 is 1:
- {pt1} is "notfull":
- execute console command "warp pteam1 %player-argument%"
- execute console command "team join 1 %player-argument%"
- execute console command "jointeam UHC3 %player-argument%"
- broadcast "&3%player-argument% has joined the Cyan Team!"
- else if arg 1 is 2:
- {pt2} is "notfull":
- execute console command "warp pteam2 %player-argument%"
- execute console command "team join 2 %player-argument%"
- execute console command "jointeam UHC6 %player-argument%"
- broadcast "&6%player-argument% has joined the Orange Team!"
- else if arg 1 is 3:
- {pt3} is "notfull":
- execute console command "warp pteam3 %player-argument%"
- execute console command "team join 3 %player-argument%"
- execute console command "jointeam UHC5 %player-argument%"
- broadcast "&5%player-argument% has joined the Purple Team!"
- else if arg 1 is 4:
- {pt4} is "notfull":
- execute console command "warp pteam4 %player-argument%"
- execute console command "team join 4 %player-argument%"
- execute console command "jointeam UHC4 %player-argument%"
- broadcast "&4%player-argument% has joined the Red Team!"
- else if arg 1 is 5:
- {pt5} is "notfull":
- execute console command "warp pteam5 %player-argument%"
- execute console command "team join 5 %player-argument%"
- execute console command "jointeam UHC1 %player-argument%"
- broadcast "&9%player-argument% has joined the Blue Team!"
- else if arg 1 is 6:
- {pt6} is "notfull":
- execute console command "warp pteam6 %player-argument%"
- execute console command "team join 6 %player-argument%"
- execute console command "jointeam UHC14 %player-argument%"
- broadcast "&e%player-argument% has joined the Yellow Team!"
- else if arg 1 is 7:
- {pt7} is "notfull":
- execute console command "warp pteam7 %player-argument%"
- execute console command "team join 7 %player-argument%"
- execute console command "jointeam UHC13 %player-argument%"
- broadcast "&d%player-argument% has joined the Pink Team!"
- else if arg 1 is 8:
- {pt8} is "notfull":
- execute console command "warp pteam8 %player-argument%"
- execute console command "team join 8 %player-argument%"
- execute console command "jointeam UHC10 %player-argument%"
- broadcast "&a%player-argument% has joined the Light Green Team!"
- command /resetpickedteams:
- permission: skript.pickedteams
- trigger:
- delete {picked::*}
- loop all players:
- add loop-player to {picked::*}
- set {pt1} to "notfull"
- set {pt2} to "notfull"
- set {pt3} to "notfull"
- set {pt4} to "notfull"
- set {pt5} to "notfull"
- set {pt6} to "notfull"
- set {pt7} to "notfull"
- set {pt8} to "notfull"
- broadcast "{@n} Picked Teams reset!"
- command /ptteamfull <integer>:
- permission: skript.pickedteams
- trigger:
- set {pt%arg 1%} to "full"
- command /removeptplayer <player>:
- permission: skript.pickedteams
- trigger:
- remove player-argument from {picked::*}
- command /ptplayer:
- permission: skript.pickedteams
- trigger:
- loop {picked::*}:
- set {_picker} to (random element out of {picked::*})
- remove {_picker} from {picked::*}
- execute console command "warp pickedteams %{_picker}%"
- broadcast "{@n} %{_picker}% is picking!"
- command /rigptplayer <player>:
- permission: skript.pickedteams
- trigger:
- set {_picker} to player-argument
- remove {_picker} from {picked::*}
- execute console command "warp pickedteams %{_picker}%"
- broadcast "{@n} %{_picker}% is picking!"
- command /whsess <text>:
- permission: skript.pickedteams
- permission message: &4Or nah?
- trigger:
- if arg 1 is "enable":
- command sender command "/sk reload WHSEssentials"
- command sender command "/sk enable WHSEssentials"
- broadcast "&8[&3WHS&8]&c is now reloaded and enabled!"
- if arg 1 is "disable":
- command sender command "/sk disable WHSEssentials"
- broadcast "&8[&3WHS&8]&c is now disabled!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement