Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. command /stats <text>:
  2. trigger:
  3. wait 1 tick
  4. open chest with 1 row named "%arg 1%'s Statistics" to player
  5. wait 2 ticks
  6. format slot 0 of player with a 160:15 named " " to be unstealable
  7. format slot 1 of player with a diamond sword named "&fKills" with lore "&8» &6This player has &f%{kills.stats::%arg 1%}% kills" to be unstealable
  8. format slot 2 of player with a 160:15 named " " to be unstealable
  9. format slot 3 of player with a 160:15 named " " to be unstealable
  10. format slot 4 of player with a diamond named "&fWins" with lore "&8» &6This player has &f%{wins::%arg 1%}% wins" to be unstealable
  11. format slot 5 of player with a 160:15 named " " to be unstealable
  12. format slot 6 of player with a 160:15 named " " to be unstealable
  13. format slot 7 of player with a 397:0 named "&fDeaths" with lore "&8» &6This player has &f%{deaths::%arg 1%}% deaths" to be unstealable
  14. format slot 8 of player with a 160:15 named " " to be unstealable
  15.  
  16. command /addwins <offlineplayer>:
  17. permission: skript.op
  18. trigger:
  19. add 1 to {wins::%arg 1%}
  20. message "You added 1 win for %arg 1%!"
  21.  
  22. command /removewins <offlineplayer>:
  23. permission: skript.op
  24. trigger:
  25. remove 1 from {wins::%arg 1%}
  26. message "You removed 1 win for %arg 1%!"
  27.  
  28. on death of player:
  29. if {uhcrunning} is true:
  30. if attacker is player:
  31. wait 10 ticks
  32. add 1 to {kills.stats::%attacker%}
  33. add 1 to {deaths::%victim%}
  34.  
  35. command /resetstats <text>:
  36. permission: skript.reset.stats
  37. trigger:
  38. if arg 1 is not set:
  39. set {resetstats::%command sender%} to true
  40. message "&cDo &a/resetstats confirm &cto reset all stats! You have 15 seconds."
  41. wait 15 seconds
  42. delete {resetstats::%command sender%}
  43. if arg 1 is "confirm":
  44. if {resetstats::%command sender%} is not set:
  45. message "&4Error! &cDo &a/resetstats &cfirst!"
  46. stop
  47. else:
  48. message "&cStart reset for %arg 1%!"
  49. delete {kills.stats::%arg 1%}
  50. delete {deaths::%arg 1%}
  51. delete {wins::%arg 1%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement