Guest User

Untitled

a guest
Feb 27th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. command /addwin <offlineplayer>:
  2. permission: stats.win
  3. trigger:
  4. broadcast "&e[&cPrefix&e] &bCongratulations to &c%arg-1% &bfor winning this UHC!"
  5. add 1 to {Vany.wins::%arg-1%}
  6. make player execute command "/emlg"
  7.  
  8. on join:
  9. if {Vany.wins::%player%} is not set:
  10. set {Vany.wins::%player%} to 0
  11.  
  12. if {Vany.kills::%player%} is not set:
  13. set {Vany.kills::%player%} to 0
  14.  
  15. if {Vany.deaths::%player%} is not set:
  16. set {Vany.deaths::%player%} to 0
  17.  
  18. on death:
  19. add 1 to {Vany.deaths::%victim%}
  20. attacker is a player
  21. add 1 to {Vany.kills::%attacker%}
  22.  
  23. command /stats [<offlineplayer>]:
  24. trigger:
  25. if arg-1 is not set:
  26. open chest with 4 row named "&bYour Stats" to player
  27. wait 1 tick
  28. format slot 4 of player with player's skull named "&b%player%" to close
  29. format slot 20 of player with diamond block named "&bWins: &c%{Vany.wins::%player%}%" to close
  30. format slot 22 of player with redstone block named "&bKills: &c%{Vany.kills::%player%}%" to close
  31. format slot 24 of player with lapis block named "&bDeaths: &c%{Vany.deaths::%player%}%" to close
  32. if arg-1 is set:
  33. if {Vany.wins::%arg-1%} is not set:
  34. set {Vany.wins::%arg-1%} to 0
  35.  
  36. if {Vany.kills::%arg-1%} is not set:
  37. set {Vany.kills::%arg-1%} to 0
  38.  
  39. if {Vany.deaths::%arg-1%} is not set:
  40. set {Vany.deaths::%arg-1%} to 0
  41.  
  42. open chest with 4 row named "&bStats of &c%arg-1%" to player
  43. wait 1 tick
  44. format slot 4 of player with player's skull named "&b%player%" to close
  45. format slot 20 of player with diamond block named "&bWins: &c%{Vany.wins::%arg-1%}%" to close
  46. format slot 22 of player with redstone block named "&bKills: &c%{Vany.kills::%arg-1%}%" to close
  47. format slot 24 of player with lapis block named "&bDeaths: &c%{Vany.deaths::%arg-1%}%" to close
  48.  
  49. command /resetkingdomall:
  50. permission: stats.reset
  51. trigger:
  52. set {Vany.wins::*} to 0
  53. set {Vany.kills::*} to 0
  54. set {Vany.deaths::*} to 0
  55. message "&aReady"
  56.  
  57. command /resetplayer [<offlineplayer>]:
  58. permission: stats.resetplayer
  59. trigger:
  60. if arg-1 is set:
  61. set {Vany.wins::%arg-1%} to 0
  62. message "&aReady"
Advertisement
Add Comment
Please, Sign In to add comment