Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- wipe player sidebar
- set name of sidebar of player to "&9Statistics"
- set score "&6Kills: &f{totalkills.%player%}" in sidebar of player to 1
- set score "&6Deaths: &f{totaldeaths.%player%}" in sidebar of player to 2
- set score "&6KillStreak: &f{currentkillstreak.%player%}" in sidebar of player to 3
- set score "&6Best KillStreak: &f{bestkillstreak.%player%}" in sidebar of player to 4
- on death:
- victim is a player
- attacker is a player
- add 1 to {totalkills.%attacker%}
- add 1 to {totaldeaths.%victim%}
- add 1 to {currentkillstreak.%attacker%}
- send "&2You now have a killsteak of &a%{currentkillstreak.%attacker%}%" to attacker
- set {currentkillstreak.%victim%} to 0
- if {currentkillstreak.%attacker%} is greater than {bestkillstreak.%attacker%}:
- set {bestkillstreak.%attacker%} to {currentkillstreak.%attacker%}
- send "&2Your new best ks is &a%{bestkillstreak.%attacker%}% &2!" to attacker
- on first join:
- set {totalkills.%player%} to 0
- set {totaldeaths.%player%} to 0
- set {currentkillstreak.%player%} to 0
- set {bestkillstreak.%player%} to 0
- options:
- prefix: &9SkyBlockersV6 &8» &7
- command /stats [<text>]:
- trigger:
- if arg 1 is not set:
- send "&8&m----------&r &9Your Statistics &8&m----------&r" to player
- send "&9Total Kills: &2%{totalkills.%player%}%" to player
- send "&9Total Deaths: &2%{totaldeaths.%player%}%" to player
- send "&9Current Killstreak: &2%{currentkillstreak.%player%}%" to player
- send "&9Best Killstreak: &2%{bestkillstreak.%player%}%" to player
- stop
- if arg 1 is set:
- if player have permission "stats.other":
- send "&8&m----------&r &9%arg 1%'s Statistics &8&m----------&r" to player
- send "&9Total Kills: &2%{totalkills.%arg 1%}%" to player
- send "&9Total Deaths: &2%{totaldeaths.%arg 1%}%" to player
- send "&9Current Killstreak: &2%{currentkillstreak.%arg 1%}%" to player
- send "&9Best Killstreak: &2%{bestkillstreak.%arg 1%}%" to player
- stop
- command /resetstats [<player>]:
- trigger:
- if player have permission "stats.reset":
- if arg 1 is not set:
- set {totalkills.%player%} to 0
- set {totaldeaths.%player%} to 0
- set {sessionkills.%player%} to 0
- set {sessiondeaths.%player%} to 0
- set {currentkillstreak.%player%} to 0
- set {bestkillstreak.%player%} to 0
- send "{@prefix} 7Your stats have been reset" to player
- stop
- else:
- set {totalkills.%arg 1%} to 0
- set {totaldeaths.%arg 1%} to 0
- set {sessionkills.%arg 1%} to 0
- set {sessiondeaths.%arg 1%} to 0
- set {currentkillstreak.%arg 1%} to 0
- set {bestkillstreak.%arg 1%} to 0
- send "{@prefix} &7%arg 1% stats have been reset" to player
- stop
- else:
- send "{@prefix} &cYou don't have permission!" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement