SHOW:
|
|
- or go back to the newest paste.
| 1 | on first join: | |
| 2 | - | set {kills::%UUID of player%} to 0
|
| 2 | + | set {kills::%UUID of player%} to 0
|
| 3 | - | set {deaths::%UUID of player%} to 0
|
| 3 | + | set {deaths::%UUID of player%} to 0
|
| 4 | - | set {kd::%UUID of player%} to 0
|
| 4 | + | set {kd::%UUID of player%} to 0
|
| 5 | - | on join: |
| 5 | + | |
| 6 | - | set {login.%UUID of player%} to 1
|
| 6 | + | victim is a player |
| 7 | add 1 to {deaths::%UUID of victim%}
| |
| 8 | - | victim is a player |
| 8 | + | |
| 9 | - | if attacker is a player: |
| 9 | + | victim is a player |
| 10 | - | set {deathpoint.%UUID of victim%} to location of victim
|
| 10 | + | attacker is a player |
| 11 | - | force victim to respawn |
| 11 | + | |
| 12 | - | teleport victim to {deathpoint.%UUID of victim%}
|
| 12 | + | |
| 13 | - | delete {deathpoint.%UUID of victim%}
|
| 13 | + | |
| 14 | set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
| |
| 15 | command /playerstats [<player>]: | |
| 16 | - | wait 1 tick |
| 16 | + | aliases: /pstats |
| 17 | - | set victim's gamemode to spectator |
| 17 | + | usage: &c/playerstats <player> |
| 18 | - | wait 5 second |
| 18 | + | |
| 19 | - | set victim's gamemode to adventure |
| 19 | + | |
| 20 | - | teleport victim to world's spawn point |
| 20 | + | send "&6================&4&lStats&6================" |
| 21 | - | set the death message to "&4&l%victim%&6は&4&l%attacker%&6に殺された" |
| 21 | + | send "&4%arg-1%'s stats" |
| 22 | - | else: |
| 22 | + | send "&4Kills: &6%{kills::%UUID of arg-1%}%"
|
| 23 | send "&4Deaths: &6%{deaths::%UUID of arg-1%}%"
| |
| 24 | - | force victim to respawn |
| 24 | + | send "&4KD: &6%{kd::%UUID of arg-1%}%"
|
| 25 | - | set the death message to "&4&l%victim%&6は死亡した" |
| 25 | + | send "&6================&4&lStats&6================" |
| 26 | if arg-1 is not set: | |
| 27 | send "&6================&4&lStats&6================" | |
| 28 | - | if {deaths::%UUID of loop-player%} is not 0:
|
| 28 | + | send "&4%player%'s stats" |
| 29 | - | set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
|
| 29 | + | |
| 30 | - | if {deaths::%UUID of loop-player%} is 0:
|
| 30 | + | |
| 31 | - | set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
|
| 31 | + | send "&4KD: &6%{kd::%UUID of player%}%"
|
| 32 | - | add 0 to {kills::%UUID of loop-player%}
|
| 32 | + | send "&6================&4&lStats&6================" |