Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /addwin <offlineplayer>:
- permission: stats.win
- trigger:
- broadcast "&e[&cPrefix&e] &bCongratulations to &c%arg-1% &bfor winning this UHC!"
- add 1 to {Vany.wins::%arg-1%}
- make player execute command "/emlg"
- on join:
- if {Vany.wins::%player%} is not set:
- set {Vany.wins::%player%} to 0
- if {Vany.kills::%player%} is not set:
- set {Vany.kills::%player%} to 0
- if {Vany.deaths::%player%} is not set:
- set {Vany.deaths::%player%} to 0
- on death:
- add 1 to {Vany.deaths::%victim%}
- attacker is a player
- add 1 to {Vany.kills::%attacker%}
- command /stats [<offlineplayer>]:
- trigger:
- if arg-1 is not set:
- open chest with 4 row named "&bYour Stats" to player
- wait 1 tick
- format slot 4 of player with player's skull named "&b%player%" to close
- format slot 20 of player with diamond block named "&bWins: &c%{Vany.wins::%player%}%" to close
- format slot 22 of player with redstone block named "&bKills: &c%{Vany.kills::%player%}%" to close
- format slot 24 of player with lapis block named "&bDeaths: &c%{Vany.deaths::%player%}%" to close
- if arg-1 is set:
- if {Vany.wins::%arg-1%} is not set:
- set {Vany.wins::%arg-1%} to 0
- if {Vany.kills::%arg-1%} is not set:
- set {Vany.kills::%arg-1%} to 0
- if {Vany.deaths::%arg-1%} is not set:
- set {Vany.deaths::%arg-1%} to 0
- open chest with 4 row named "&bStats of &c%arg-1%" to player
- wait 1 tick
- format slot 4 of player with player's skull named "&b%player%" to close
- format slot 20 of player with diamond block named "&bWins: &c%{Vany.wins::%arg-1%}%" to close
- format slot 22 of player with redstone block named "&bKills: &c%{Vany.kills::%arg-1%}%" to close
- format slot 24 of player with lapis block named "&bDeaths: &c%{Vany.deaths::%arg-1%}%" to close
- command /resetkingdomall:
- permission: stats.reset
- trigger:
- set {Vany.wins::*} to 0
- set {Vany.kills::*} to 0
- set {Vany.deaths::*} to 0
- message "&aReady"
- command /resetplayer [<offlineplayer>]:
- permission: stats.resetplayer
- trigger:
- if arg-1 is set:
- set {Vany.wins::%arg-1%} to 0
- message "&aReady"
Advertisement
Add Comment
Please, Sign In to add comment