Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # TopKills LeaderBoard
- # Mr_Theia
- #
- on load:
- send "&8======================================================================" to console
- send "&dTopKills LeaderBoard v.1 loaded successful" to console
- send "&8======================================================================" to console
- on sign change:
- player is op
- if line 1 of block is "[TopKills]":
- add block to {TopKills.signs::*}
- set {_skull} to skull of {topkiller}
- set the block above the block to {_skull}'s skull
- set line 1 of block to "&4Top Kills"
- set line 2 of block to "&a%{topkiller}%"
- set line 3 of block to "&cKills: &f%{topkills}%"
- every 30 seconds:
- loop {TopKills.signs::*}:
- set line 2 of loop-value to "&a%{topkiller}%"
- set line 3 of loop-value to "&cKills: &f%{topkills}%"
- set block above loop-value to {topkiller}'s skull
- on death of player:
- attacker is a player
- if {topkill.%attacker%} isn't set:
- add 1 to {topkill::%attacker%}
- else:
- add 1 to {topkill::%attacker%}
- {topkiller} isn't set:
- set {topkiller} to attacker
- set {topkills} to {topkill::%attacker%}
- {topkill::%attacker%} is greater than {topkills}:
- set {topkiller} to attacker
- set {topkills} to {topkill::%attacker%}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement