Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &5[&bTAG&5]
- command /pvpstats [<text>]:
- usage: /pvpstats <player> or /pvpstats
- trigger:
- if arg 1 is not set:
- if player have permission "pro.stats.me":
- send "&5===== &4&lYOUR STATS &5=====" to player
- send "&4Total Kills: &6%{totalkills.%player%}%" to player
- send "&4Total Deaths: &6%{totaldeaths.%player%}%" to player
- send "&4Session Kills: &6%{sessionkills.%player%}%" to player
- send "&4Session Deaths: &6%{sessiondeaths.%player%}%" to player
- send "&4Current Killstreak: &6%{currentks.%player%}%" to player
- send "&4Best Killstreak: &6%{bestks.%player%}%" to player
- send "&6--- {@tag} &6---" to player
- stop
- else:
- send "{@tag} &6You don't have the permission to check your stats" to player
- if arg 1 is set:
- if player have permission "pro.stats.other":
- send "&5===== &4&l%arg 1%'s stats &5=====" to player
- send "&4Total Kills: &6%{totalkills.%arg 1%}%" to player
- send "&4Total Deaths: &6%{totaldeaths.%arg 1%}%" to player
- send "&4Session Kills: &6%{sessionkills.%arg 1%}%" to player
- send "&4Session Deaths: &6%{sessiondeaths.%arg 1%}%" to player
- send "&4Current Killstreak: &6%{currentks.%arg 1%}%" to player
- send "&4Best Killstreak: &6%{bestks.%arg 1%}%" to player
- send "&6--- {@tag} &6---" to player
- stop
- else:
- send "{@tag} &6You don't have the permission to check other people stats" to player
- on death:
- victim is a player
- attacker is a player
- add 1 to {totalkills.%attacker%}
- add 1 to {totaldeaths.%victim%}
- add 1 to {sessionkills.%attacker%}
- add 1 to {sessiondeaths.%victim%}
- add 1 to {currentks.%attacker%}
- send "&5[&bNoHitDelay&5] &6You now have a killsteak of &4%{currentks.%attacker%}%" to attacker
- set {currentks.%victim%} to 0
- if {currentks.%attacker%} is greater than {bestks.%attacker%}:
- set {bestks.%attacker%} to {currentks.%attacker%}
- send "&5[&bNoHitDelay&5] &6Your new best ks is &4%{bestks.%attacker%}% &6!" to attacker
- if {currentks.%attacker%} is greater than 10:
- if {ksalert} is true:
- broadcast "&5[&bNoHitDelay&5] &6%attacker% is on a %{currentks.%attacker%}% killstreak ! stop him !"
- else:
- stop
- on quit:
- clear {sessiondeaths.%player%}
- clear {sessionkills.%player%}
- clear {currentks.%player%}
- command /ksalert <text>:
- usage: /ksalert true/false
- trigger:
- if player have permission "pro.ksalert":
- if arg 1 is "true":
- set {ksalert} to true
- send "{@tag} &6ks alert >> true" to player
- stop
- if arg 1 is "false":
- set {ksalert} to false
- send "{@tag} &6ks alert >> false" to player
- stop
- else:
- send "{@tag} &6Incorrect option, use /ksalert true/false"
- else:
- send "{@tag} &6You don't have the permission to chance ks alert" to player
- on first join:
- set {totalkills.%player%} to 0
- set {totaldeaths.%player%} to 0
- set {sessionkills.%player%} to 0
- set {sessiondeaths.%player%} to 0
- set {currentks.%player%} to 0
- set {bestks.%player%} to 0
- command /pvpstatsreset [<player>]:
- trigger:
- if player have permission "pro.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 {currentks.%player%} to 0
- set {bestks.%player%} to 0
- send "{@tag} &6Your 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 {currentks.%arg 1%} to 0
- set {bestks.%arg 1%} to 0
- send "{@tag} &6%arg 1% stats have been reset" to player
- stop
- else:
- send "{@tag} &6You don't have the permission to reset stats" to player
Add Comment
Please, Sign In to add comment