Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {kills::%player%} = 0
- {Deaths::%player%} 0
- On death of a player:
- if attacker is a player:
- set the death message to "{@pr} &e%victim%&7 was slain by &e%attacker%&7"
- wait 1 tick
- make console execute command "/lagg clear"
- if {Kills::%attacker%} is not set:
- set {Kills::%attacker%} to 0
- if {Deaeths::%attacker%} is not set:
- set {Deaths::%attacker%} to 0
- Sidebar(attacker)
- Sidebar(victim)
- add 1 to {Kills::%attacker%}
- add 1 to {Deaths::%victim%}
- stop
- else:
- add 1 to {Deaths::%victim%}
- broadcast "{@pr} &e%victim% &7died.."
- Sidebar(victim)
- on join:
- Sidebar(player)
- on join:
- Sidebar(player)
- command /leaderboard:
- trigger:
- loop {Killtop::*}:
- add 1 to {_size}
- if {_low.to.high.list::%loop-value%} is not set:
- set {_low.to.high.list::%loop-value%} to loop-index
- else:
- set {_n} to 0
- loop {_size} times:
- set {_n} to {_n}+1
- {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
- set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
- stop loop
- wait 1 tick
- set {_n} to size of {_low.to.high.list::*}
- loop {_low.to.high.list::*}:
- set {_high.to.low.list::%{_n}%} to loop-value
- set {_n} to {_n}-1
- wait 1 tick
- send ""
- message centered "&c&lTop Kills" to player
- send ""
- loop {_high.to.low.list::*}:
- add 1 to {_result}
- send "&8(&f##%{_result}%&8) &a%loop-value%&8: &e%{Kills::%loop-value%}% Kills" to player
- send ""
- if {_result} is 10:
- stop
- function Sidebar(p: player):
- wipe {_p}'s sidebar
- set name of sidebar of {_p} to "&4&oYour Statistics"
- set score "&7&m-------------------------" in sidebar of {_p} to 8
- set score "&f&f" in sidebar of {_p} to 7
- set score "&cKills: &f%{Kills::%{_p}%}%" in sidebar of {_p} to 6
- set score "&cDeaths: &f%{Deaths::%{_p}%}%" in sidebar of {_p} to 5
- set score "&f" in sidebar of {_p} to 4
- set score "&7&oZoraPvP.minehut.gg" in sidebar of {_p} to 3
- set score "&7&m-------------------------&r" in sidebar of {_p} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement