akon1248

Untitled

Jul 23rd, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. on first join:
  2. set {kills::%UUID of player%} to 0
  3. set {deaths::%UUID of player%} to 0
  4. set {kd::%UUID of player%} to 0
  5. on join:
  6. set {login.%UUID of player%} to 1
  7. on death:
  8. victim is a player
  9. if attacker is a player:
  10. set {deathpoint.%UUID of victim%} to location of victim
  11. force victim to respawn
  12. teleport victim to {deathpoint.%UUID of victim%}
  13. delete {deathpoint.%UUID of victim%}
  14. add 1 to {deaths::%UUID of victim%}
  15. add 1 to {kills::%UUID of attacker%}
  16. wait 1 tick
  17. set victim's gamemode to spectator
  18. wait 5 second
  19. set victim's gamemode to adventure
  20. teleport victim to world's spawn point
  21. set the death message to "&4&l%victim%&6は&4&l%attacker%&6に殺された"
  22. else:
  23. add 1 to {deaths::%UUID of victim%}
  24. force victim to respawn
  25. set the death message to "&4&l%victim%&6は死亡した"
  26. every tick:
  27. loop all players:
  28. if {deaths::%UUID of loop-player%} is not 0:
  29. set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
  30. if {deaths::%UUID of loop-player%} is 0:
  31. set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
  32. add 0 to {kills::%UUID of loop-player%}
  33. add 0 to {deaths::%UUID of loop-player%}
  34. add 0 to {kd::%UUID of loop-player%}
  35. command /playerstatus [<offline player>]:
  36. aliases: /pstatus,/status
  37. usage: &c/playerstatus <player>
  38. trigger:
  39. if arg-1 is set:
  40. if {login.%UUID of arg-1%} is 1:
  41. send "&6================&4&lStatus&6================"
  42. send "&4%arg-1%'s status"
  43. send "&4Kills: &6%{kills::%UUID of arg-1%}%"
  44. send "&4Deaths: &6%{deaths::%UUID of arg-1%}%"
  45. send "&4K/D: &6%{kd::%UUID of arg-1%}%"
  46. send "&6================&4&lStatus&6================"
  47. else:
  48. send "&7[&4Error&7] &cThat player's status is not found"
  49. if arg-1 is not set:
  50. send "&6================&4&lStatus&6================"
  51. send "&4%player%'s status"
  52. send "&4Kills: &6%{kills::%UUID of player%}%"
  53. send "&4Deaths: &6%{deaths::%UUID of player%}%"
  54. send "&4K/D: &6%{kd::%UUID of player%}%"
  55. send "&6================&4&lStatus&6================"
Add Comment
Please, Sign In to add comment