Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /stats <text>:
- trigger:
- wait 1 tick
- open chest with 1 row named "%arg 1%'s Statistics" to player
- wait 2 ticks
- format slot 0 of player with a 160:15 named " " to be unstealable
- 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
- format slot 2 of player with a 160:15 named " " to be unstealable
- format slot 3 of player with a 160:15 named " " to be unstealable
- format slot 4 of player with a diamond named "&fWins" with lore "&8» &6This player has &f%{wins::%arg 1%}% wins" to be unstealable
- format slot 5 of player with a 160:15 named " " to be unstealable
- format slot 6 of player with a 160:15 named " " to be unstealable
- 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
- format slot 8 of player with a 160:15 named " " to be unstealable
- command /addwins <offlineplayer>:
- permission: skript.op
- trigger:
- add 1 to {wins::%arg 1%}
- message "You added 1 win for %arg 1%!"
- command /removewins <offlineplayer>:
- permission: skript.op
- trigger:
- remove 1 from {wins::%arg 1%}
- message "You removed 1 win for %arg 1%!"
- on death of player:
- if {uhcrunning} is true:
- if attacker is player:
- wait 10 ticks
- add 1 to {kills.stats::%attacker%}
- add 1 to {deaths::%victim%}
- command /resetstats <text>:
- permission: skript.reset.stats
- trigger:
- if arg 1 is not set:
- set {resetstats::%command sender%} to true
- message "&cDo &a/resetstats confirm &cto reset all stats! You have 15 seconds."
- wait 15 seconds
- delete {resetstats::%command sender%}
- if arg 1 is "confirm":
- if {resetstats::%command sender%} is not set:
- message "&4Error! &cDo &a/resetstats &cfirst!"
- stop
- else:
- message "&cStart reset for %arg 1%!"
- delete {kills.stats::%arg 1%}
- delete {deaths::%arg 1%}
- delete {wins::%arg 1%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement