Advertisement
FrostedWeFall

Statistics

Oct 25th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. variables:
  2. kills.%player% = 0
  3. deaths.%player% = 0
  4. blocks.%player% = 0
  5. blocksplace.%player% = 0
  6. gapples.%player% = 0
  7. status.%player% = "&c&lOFFLINE"
  8.  
  9.  
  10. on death:
  11. attacker is a player
  12. victim is a player
  13. increase {kills.%attacker%} by 1
  14. increase {deaths.%victim%} by 1
  15.  
  16. on break:
  17. increase {blocks.%player%} by 1
  18.  
  19. on consume of golden apple:
  20. increase {gapples.%player%} by 1
  21.  
  22. on place:
  23. increase {blocksplace.%player%} by 1
  24.  
  25. on first join:
  26. set {firstjoin::%player's uuid%} to now
  27.  
  28. on join:
  29. if {firstjoin::%player's uuid%} is not set:
  30. set {firstjoin::%player's uuid%} to now
  31. set {status.%player%} to "&a&lONLINE"
  32.  
  33. on quit:
  34. set {status.%player%} to "&c&lOFFLINE"
  35.  
  36. on login:
  37. set {lastlogin::%player's uuid%} to now
  38.  
  39. on logout:
  40. set {location::%player's uuid%} to player's location
  41.  
  42.  
  43. command /stats [<offlineplayer>]:
  44. trigger:
  45. if arg 1 is not set:
  46. if {lastlogin::%player's uuid%} is not set:
  47. set {lastlogin::%player's uuid%} to "&fNo known last location"
  48. set {_player} to "%player%" parsed as player
  49. open chest with 3 rows named "&c&lYour &e&lStats" to player
  50. format slot 0 of player with blue glass named "&f" to be unstealable
  51. format slot 1 of player with red glass named "&f" to be unstealable
  52. format slot 2 of player with blue glass named "&f" to be unstealable
  53. format slot 3 of player with red glass named "&f" to be unstealable
  54. format slot 4 of player with blue glass named "&f" to be unstealable
  55. format slot 5 of player with red glass named "&f" to be unstealable
  56. format slot 6 of player with blue glass named "&f" to be unstealable
  57. format slot 7 of player with red glass named "&f" to be unstealable
  58. format slot 8 of player with blue glass named "&f" to be unstealable
  59. format slot 9 of player with red glass named "&f" to be unstealable
  60. format slot 10 of player with blue glass named "&f" to be unstealable
  61. format slot 11 of player with red glass named "&f" to be unstealable
  62. format slot 12 of player with blue glass named "&f" to be unstealable
  63. format slot 13 of player with skull of {_player} named "%player's displayname%" with lore "&eStatus: &f%{status.%player%}%||&eFirst join: &f%{firstjoin::%player's uuid%}%||&eLast Login: &f%{lastlogin::%player's uuid%}%||&eLast Location: &f%{location::%player's uuid%}%||&eDeaths: &f%{deaths.%player%}%||&eKills: &f%{kills.%player%}%||&eBlocks Broken: &f%{blocks.%player%}%||&eBlocks Placed: &f%{blocksplace.%player%}%||&eGapples Eaten: &f%{gapples.%player%}%" to be unstealable
  64. format slot 14 of player with blue glass named "&f" to be unstealable
  65. format slot 15 of player with red glass named "&f" to be unstealable
  66. format slot 16 of player with blue glass named "&f" to be unstealable
  67. format slot 17 of player with red glass named "&f" to be unstealable
  68. format slot 18 of player with blue glass named "&f" to be unstealable
  69. format slot 19 of player with red glass named "&f" to be unstealable
  70. format slot 20 of player with blue glass named "&f" to be unstealable
  71. format slot 21 of player with red glass named "&f" to be unstealable
  72. format slot 22 of player with blue glass named "&f" to be unstealable
  73. format slot 23 of player with red glass named "&f" to be unstealable
  74. format slot 24 of player with blue glass named "&f" to be unstealable
  75. format slot 25 of player with red glass named "&f" to be unstealable
  76. format slot 26 of player with blue glass named "&f" to be unstealable
  77. if arg 1 is set:
  78. if {kills.%arg-1%} is not set:
  79. set {kills.%arg-1%} to 0
  80. if {deaths.%arg-1%} is not set:
  81. set {deaths.%arg-1%} to 0
  82. if {blocks.%arg-1%} is not set:
  83. set {blocks.%arg-1%} to 0
  84. if {blocksplace.%arg-1%} is not set:
  85. set {blocksplace.%arg-1%} to 0
  86. if {gapples.%arg-1%} is not set:
  87. set {gapples.%arg-1%} to 0
  88. if {status.%arg-1%} is not set:
  89. set {status.%arg-1%} to "&c&lOFFLINE"
  90. if {firstjoin::%arg-1's uuid%} is not set:
  91. set {firstjoin::%arg-1's uuid%} to "&cNever Joined"
  92. if {location::%arg-1's uuid%} is not set:
  93. set {location::%arg-1's uuid%} to "&cNever Joined"
  94. if {lastlogin::%arg-1's uuid%} is not set:
  95. set {lastlogin::%arg-1's uuid%} to "&cNever Joined"
  96. set {_arg1} to "%arg-1%" parsed as offlineplayer
  97. open chest with 3 rows named "&c&l%arg-1%'s &e&lStats" to player
  98. format slot 0 of player with blue glass named "&f" to be unstealable
  99. format slot 1 of player with red glass named "&f" to be unstealable
  100. format slot 2 of player with blue glass named "&f" to be unstealable
  101. format slot 3 of player with red glass named "&f" to be unstealable
  102. format slot 4 of player with blue glass named "&f" to be unstealable
  103. format slot 5 of player with red glass named "&f" to be unstealable
  104. format slot 6 of player with blue glass named "&f" to be unstealable
  105. format slot 7 of player with red glass named "&f" to be unstealable
  106. format slot 8 of player with blue glass named "&f" to be unstealable
  107. format slot 9 of player with red glass named "&f" to be unstealable
  108. format slot 10 of player with blue glass named "&f" to be unstealable
  109. format slot 11 of player with red glass named "&f" to be unstealable
  110. format slot 12 of player with blue glass named "&f" to be unstealable
  111. format slot 13 of player with skull of {_arg1} named "&c&l%arg-1%'s &e&lStats" with lore "&eStatus: &f%{status.%arg-1%}%||&eFirst join: &f%{firstjoin::%arg-1's uuid%}%||&eLast Login: &f%{lastlogin::%arg-1's uuid%}%||&eLast Location: &f%{location::%arg-1's uuid%}%||&eDeaths: &f%{deaths.%arg-1%}%||&eKills: &f%{kills.%arg-1%}%||&eBlocks Broken: &f%{blocks.%arg-1%}%||&eBlocks Placed: &f%{blocksplace.%arg-1%}%||&eGapples Eaten: &f%{gapples.%arg-1%}%" to be unstealable
  112. format slot 14 of player with blue glass named "&f" to be unstealable
  113. format slot 15 of player with red glass named "&f" to be unstealable
  114. format slot 16 of player with blue glass named "&f" to be unstealable
  115. format slot 17 of player with red glass named "&f" to be unstealable
  116. format slot 18 of player with blue glass named "&f" to be unstealable
  117. format slot 19 of player with red glass named "&f" to be unstealable
  118. format slot 20 of player with blue glass named "&f" to be unstealable
  119. format slot 21 of player with red glass named "&f" to be unstealable
  120. format slot 22 of player with blue glass named "&f" to be unstealable
  121. format slot 23 of player with red glass named "&f" to be unstealable
  122. format slot 24 of player with blue glass named "&f" to be unstealable
  123. format slot 25 of player with red glass named "&f" to be unstealable
  124. format slot 26 of player with blue glass named "&f" to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement