Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. Options:
  2. P: &c&lDynamicUHC &7»
  3. N: &7
  4. A: &8ยป&7
  5. SpecVar: Spec
  6. e: is now &aenabled&7.
  7. d: is now &cdisabled&7.
  8.  
  9.  
  10. command /killboard <text>:
  11. permission: uhc.staff
  12. trigger:
  13. if arg 1 is "on":
  14. delete {Killboard::Host}
  15. if {HostingName::%uuid of sender%} is set:
  16. set {Killboard::Host} to {HostingName::%uuid of sender%}
  17. else if length of "%sender%" is greater than 11:
  18. send "{@P} {@A} {@N}Your name wont fit on the killboard! Set a shorter name using /kbname <name>"
  19.  
  20. else if {HostingName::%uuid of sender%} is not set:
  21. set {Killboard::Host} to "%sender%"
  22.  
  23. set {Killboard::on} to true
  24. send "{@P} {@A} {@N}The UHC Killboard {@e}"
  25.  
  26. loop all players:
  27. wipe loop-player's sidebar
  28. set name of sidebar of loop-player to "{@P} {@A} &6&o%{Killboard::Host}%"
  29.  
  30. else if arg 1 is "off" or "disable":
  31. delete {Killboard::*}
  32. loop all players:
  33. wipe loop-player's sidebar
  34. send "{@P} {@A} {@N}The UHC Killboard {@d}"
  35. command "scoreboard objectives remove sidebarHold"
  36.  
  37. command /kbname <text>:
  38. permission: uhc.staff
  39. trigger:
  40. if length of "%arg 1%" is greater than 11:
  41. send "{@P} {@A} {@N}Invalid hosting name."
  42. else:
  43. set {HostingName::%uuid of sender%} to arg 1
  44. send "{@P} {@A} {@N}Saved your hosting name, now try /killboard on"
  45.  
  46.  
  47.  
  48. every 10 seconds:
  49. {Killboard::on} is true
  50. delete {Killboard::Playing}
  51. loop all players:
  52. {{@SpecVar}::%loop-player%} is not set
  53. add 1 to {Killboard::Playing}
  54. loop all players:
  55. set score " {@A} {@N}Playing&8..." in sidebar of loop-player to {Killboard::Playing}
  56.  
  57. on death of player:
  58. {Killboard::on} is true
  59. if attacker is a player:
  60.  
  61. add 1 to {Killboard::%uuid of attacker%::Kills}
  62. loop all players:
  63. set score "%attacker%" in sidebar of loop-player to {Killboard::%uuid of attacker%::Kills}
  64.  
  65. if {Killboard::%uuid of victim%::Kills} is set:
  66. loop all players:
  67. delete score "%victim%" in sidebar of player
  68. 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