Advertisement
LukaMC59

Untitled

Oct 19th, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1.  
  2. on join:
  3. wipe player sidebar
  4. set name of sidebar of player to "&9Statistics"
  5. set score "&6Kills: &f{totalkills.%player%}" in sidebar of player to 1
  6. set score "&6Deaths: &f{totaldeaths.%player%}" in sidebar of player to 2
  7. set score "&6KillStreak: &f{currentkillstreak.%player%}" in sidebar of player to 3
  8. set score "&6Best KillStreak: &f{bestkillstreak.%player%}" in sidebar of player to 4
  9.  
  10. on death:
  11. victim is a player
  12. attacker is a player
  13. add 1 to {totalkills.%attacker%}
  14. add 1 to {totaldeaths.%victim%}
  15. add 1 to {currentkillstreak.%attacker%}
  16. send "&2You now have a killsteak of &a%{currentkillstreak.%attacker%}%" to attacker
  17. set {currentkillstreak.%victim%} to 0
  18. if {currentkillstreak.%attacker%} is greater than {bestkillstreak.%attacker%}:
  19. set {bestkillstreak.%attacker%} to {currentkillstreak.%attacker%}
  20. send "&2Your new best ks is &a%{bestkillstreak.%attacker%}% &2!" to attacker
  21. on first join:
  22. set {totalkills.%player%} to 0
  23. set {totaldeaths.%player%} to 0
  24. set {currentkillstreak.%player%} to 0
  25. set {bestkillstreak.%player%} to 0
  26. options:
  27. prefix: &9SkyBlockersV6 &8» &7
  28.  
  29. command /stats [<text>]:
  30. trigger:
  31. if arg 1 is not set:
  32. send "&8&m----------&r &9Your Statistics &8&m----------&r" to player
  33. send "&9Total Kills: &2%{totalkills.%player%}%" to player
  34. send "&9Total Deaths: &2%{totaldeaths.%player%}%" to player
  35. send "&9Current Killstreak: &2%{currentkillstreak.%player%}%" to player
  36. send "&9Best Killstreak: &2%{bestkillstreak.%player%}%" to player
  37. stop
  38. if arg 1 is set:
  39. if player have permission "stats.other":
  40. send "&8&m----------&r &9%arg 1%'s Statistics &8&m----------&r" to player
  41. send "&9Total Kills: &2%{totalkills.%arg 1%}%" to player
  42. send "&9Total Deaths: &2%{totaldeaths.%arg 1%}%" to player
  43. send "&9Current Killstreak: &2%{currentkillstreak.%arg 1%}%" to player
  44. send "&9Best Killstreak: &2%{bestkillstreak.%arg 1%}%" to player
  45. stop
  46. command /resetstats [<player>]:
  47. trigger:
  48. if player have permission "stats.reset":
  49. if arg 1 is not set:
  50. set {totalkills.%player%} to 0
  51. set {totaldeaths.%player%} to 0
  52. set {sessionkills.%player%} to 0
  53. set {sessiondeaths.%player%} to 0
  54. set {currentkillstreak.%player%} to 0
  55. set {bestkillstreak.%player%} to 0
  56. send "{@prefix} 7Your stats have been reset" to player
  57. stop
  58. else:
  59. set {totalkills.%arg 1%} to 0
  60. set {totaldeaths.%arg 1%} to 0
  61. set {sessionkills.%arg 1%} to 0
  62. set {sessiondeaths.%arg 1%} to 0
  63. set {currentkillstreak.%arg 1%} to 0
  64. set {bestkillstreak.%arg 1%} to 0
  65. send "{@prefix} &7%arg 1% stats have been reset" to player
  66. stop
  67. else:
  68. send "{@prefix} &cYou don't have permission!" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement