Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {kills::%UUID of player%} to 0
- set {deaths::%UUID of player%} to 0
- set {kd::%UUID of player%} to 0
- on join:
- set {login.%UUID of player%} to 1
- on death:
- victim is a player
- if attacker is a player:
- set {deathpoint.%UUID of victim%} to location of victim
- force victim to respawn
- teleport victim to {deathpoint.%UUID of victim%}
- delete {deathpoint.%UUID of victim%}
- add 1 to {deaths::%UUID of victim%}
- add 1 to {kills::%UUID of attacker%}
- wait 1 tick
- set victim's gamemode to spectator
- wait 5 second
- set victim's gamemode to adventure
- teleport victim to world's spawn point
- set the death message to "&4&l%victim%&6は&4&l%attacker%&6に殺された"
- else:
- add 1 to {deaths::%UUID of victim%}
- force victim to respawn
- set the death message to "&4&l%victim%&6は死亡した"
- every tick:
- loop all players:
- if {deaths::%UUID of loop-player%} is not 0:
- set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
- if {deaths::%UUID of loop-player%} is 0:
- set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
- add 0 to {kills::%UUID of loop-player%}
- add 0 to {deaths::%UUID of loop-player%}
- add 0 to {kd::%UUID of loop-player%}
- command /playerstatus [<offline player>]:
- aliases: /pstatus,/status
- usage: &c/playerstatus <player>
- trigger:
- if arg-1 is set:
- if {login.%UUID of arg-1%} is 1:
- send "&6================&4&lStatus&6================"
- send "&4%arg-1%'s status"
- send "&4Kills: &6%{kills::%UUID of arg-1%}%"
- send "&4Deaths: &6%{deaths::%UUID of arg-1%}%"
- send "&4K/D: &6%{kd::%UUID of arg-1%}%"
- send "&6================&4&lStatus&6================"
- else:
- send "&7[&4Error&7] &cThat player's status is not found"
- if arg-1 is not set:
- send "&6================&4&lStatus&6================"
- send "&4%player%'s status"
- send "&4Kills: &6%{kills::%UUID of player%}%"
- send "&4Deaths: &6%{deaths::%UUID of player%}%"
- send "&4K/D: &6%{kd::%UUID of player%}%"
- send "&6================&4&lStatus&6================"
Add Comment
Please, Sign In to add comment