Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P : &8[&aDolls&8]
- Correct: /dolls <set/reset/enable/disable/list/class>
- ChatColour: &b
- HighlightColour: &e
- command /dolls [<text>]:
- permission: skript.dolls
- trigger:
- if arg 1 is not set:
- message "{@P} {@ChatColour}{@Correct}" to command sender
- execute console command "playsound random.break %command sender%"
- if arg 1 is "reset":
- #Deletes Previous Settings
- delete {Team.Bount::*}
- delete {Team.Doll::*}
- delete {_bount}
- delete {_doll}
- delete {bounts::*}
- delete {dolls::*}
- loop all players:
- delete {class.%loop-player%::*}
- broadcast "{@P} {@ChatColour}Dolls reset!"
- if arg-1 is "set":
- #Sets the new Dolls/Bounts
- if {Teams::*} is not set:
- message "{@P} {@ChatColour}No teams are set!"
- broadcast "{@P} {@ChatColour}Setting classes!"
- loop {Teams::*}:
- set {_PlayerPot.%loop-value%::*} to {Team.%loop-value%::*}
- #Set a Random Bount
- set {_bount} to (random element out of {_PlayerPot.%loop-value%::*})
- set {Iam.Bount::%{_bount}%} to loop-value
- set {Bount.TeamBount::%loop-value%} to {_bount}
- remove {_bount} from {_PlayerPot.%loop-value%::*}
- add {_bount} to {bounts::*}
- remove speed from {_bount}
- remove weakness from {_bount}
- #Set a Random Doll
- set {_doll} to (random element out of {_PlayerPot.%loop-value%::*})
- set {Team.Doll::%{_doll}%} to loop-value
- set {Doll.TeamDoll::%loop-value%} to {_doll}
- remove {_doll} from {_PlayerPot.%loop-value%::*}
- add {_doll} to {dolls::*}
- remove resistance from {_doll}
- remove strength from {_doll}
- if arg-1 is "list":
- loop {Team.%loop-value%::*}:
- set {_Player} to ("%loop-value-2%" parsed as offlineplayer)
- if {_Player} is online:
- message "{@P} {@ChatColour}Bounts: {@HighlightColour}%{_bount}%" to {_Player}
- message "{@P} {@ChatColour}Dolls: {@HighlightColour}%{_doll}%" to {_Player}
- if arg-1 is "enable":
- set {dolls} to true
- broadcast "{@P} {@ChatColour}is now enabled!"
- if arg-1 is "disable":
- set {dolls} to false
- broadcast "{@P} {@ChatColour}is now disabled!"
- if arg-1 is "list":
- loop {bounts::*}:
- message "{@P} &e===={@ChatColour}Bounts&e===="
- message "{@P} {@ChatColour}- {@HighlightColour}%loop-value%"
- loop {dolls::*}:
- message "{@P} &e===={@ChatColour}Dolls&e===="
- message "{@P} {@ChatColour}- {@HighlightColour}%loop-value%"
- if arg-1 is "class":
- if player is {bounts::*}:
- message "{@P} {@ChatColour}You are the {@HighlightC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement