Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- P: &c&lDynamicUHC &7»
- N: &7
- A: &8ยป&7
- SpecVar: Spec
- e: is now &aenabled&7.
- d: is now &cdisabled&7.
- command /killboard <text>:
- permission: uhc.staff
- trigger:
- if arg 1 is "on":
- delete {Killboard::Host}
- if {HostingName::%uuid of sender%} is set:
- set {Killboard::Host} to {HostingName::%uuid of sender%}
- else if length of "%sender%" is greater than 11:
- send "{@P} {@A} {@N}Your name wont fit on the killboard! Set a shorter name using /kbname <name>"
- else if {HostingName::%uuid of sender%} is not set:
- set {Killboard::Host} to "%sender%"
- set {Killboard::on} to true
- send "{@P} {@A} {@N}The UHC Killboard {@e}"
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "{@P} {@A} &6&o%{Killboard::Host}%"
- else if arg 1 is "off" or "disable":
- delete {Killboard::*}
- loop all players:
- wipe loop-player's sidebar
- send "{@P} {@A} {@N}The UHC Killboard {@d}"
- command "scoreboard objectives remove sidebarHold"
- command /kbname <text>:
- permission: uhc.staff
- trigger:
- if length of "%arg 1%" is greater than 11:
- send "{@P} {@A} {@N}Invalid hosting name."
- else:
- set {HostingName::%uuid of sender%} to arg 1
- send "{@P} {@A} {@N}Saved your hosting name, now try /killboard on"
- every 10 seconds:
- {Killboard::on} is true
- delete {Killboard::Playing}
- loop all players:
- {{@SpecVar}::%loop-player%} is not set
- add 1 to {Killboard::Playing}
- loop all players:
- set score " {@A} {@N}Playing&8..." in sidebar of loop-player to {Killboard::Playing}
- on death of player:
- {Killboard::on} is true
- if attacker is a player:
- add 1 to {Killboard::%uuid of attacker%::Kills}
- loop all players:
- set score "%attacker%" in sidebar of loop-player to {Killboard::%uuid of attacker%::Kills}
- if {Killboard::%uuid of victim%::Kills} is set:
- loop all players:
- delete score "%victim%" in sidebar of player
- set score "&m%victim%" in sidebar of loop-player to {Killboard::%uuid of victim%::Kills}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement