Advertisement
Guest User

Please Fix!

a guest
Mar 29th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 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. add 1 to {kills.stats::%attacker%}
  32.  
  33. on death of player:
  34. if {uhcrunning} is true:
  35. add 1 to {deaths::%victim%}
  36.  
  37. command /resetstats <text>:
  38. permission: skript.reset.stats
  39. trigger:
  40. if arg 1 is not set:
  41. set {resetstats::%command sender%} to true
  42. message "&cDo &a/resetstats confirm &cto reset all stats! You have 15 seconds."
  43. wait 15 seconds
  44. delete {resetstats::%command sender%}
  45. if arg 1 is "confirm":
  46. if {resetstats::%command sender%} is not set:
  47. message "&4Error! &cDo &a/resetstats &cfirst!"
  48. stop
  49. else:
  50. message "&cStart reset for %arg 1%!"
  51. delete {kills.stats::%arg 1%}
  52. delete {deaths::%arg 1%}
  53. delete {wins::%arg 1%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement