Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===================================#
- #=---Ironman Skript by /u/haon35---=#
- #===================================#
- options:
- C: §7Ironman §8»
- command /ironman [<text>] [<offlineplayer>]:
- trigger:
- if arg 1 is not set:
- if {Ironman} is true:
- if {Ironman.list::*} is set:
- send "{@C} §7%{Ironman.list::*}%"
- else:
- send "{@C} §7The ironman list is not set !"
- else:
- send "{@C} §7Ironman is not set !"
- if arg 1 is "list":
- if {Ironman} is true:
- if {Ironman.list::*} is set:
- send "{@C} §7%{Ironman.list::*}%"
- else:
- send "{@C} §7The ironman list is not set !"
- else:
- send "{@C} §7Ironman is not set !"
- send "{@C} §7%{Ironman.list::*}%"
- if arg 1 is "start":
- if player is op:
- send "§7§o[%command sender% : started the ironman.]" to op
- set {Ironman} to true
- delete {Ironman.list::*}
- loop all players:
- add loop-player to {Ironman.list::*}
- broadcast "{@C} §7Every players has been added to the ironman list !"
- broadcast "{@C} §7%{Ironman.list::*}%"
- else:
- send "{@C} §7You are not allowed to change the list !"
- if arg 1 is "end":
- if player is op:
- send "§7§o[%command sender% : ended the ironman.]" to op
- set {Ironman} to false
- loop {Ironman.list::*}:
- remove loop-value from {Ironman.list::*}
- delete {Ironman.list::*}
- broadcast "{@C} §7Ironman list cleared !"
- else:
- send "{@C} §7You are not allowed to change the list !"
- if arg 1 is "add":
- if arg 2 is set:
- if {Ironman} is true:
- if player is op:
- send "§7§o[%command sender% : added %arg-2% to the ironman list.]" to op
- add arg 2 to {Ironman.list::*}
- send "{@C} §7You added %arg-2% to the ironman list !" to command sender
- send "{@C} §7You have been added to the ironman list !" to arg-2
- else:
- send "{@C} §7You are not allowed to change the list !"
- else:
- send "{@C} §7Ironman is not set !"
- else:
- send "{@C} §7You need to specify a player !"
- on damage:
- if {Ironman} is true:
- remove victim from {Ironman.list::*}
- if size of {Ironman.list::*} is 1:
- broadcast "{@C} §r%{Ironman.list::*}% §7is the ironman !"
- set {Ironman} to false
- delete {Ironman.list::*}
- on login:
- if {IronMan} is true:
- if {Ironman.list::%player%} is not set:
- add player to {Ironman.list::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement