akon1248

Untitled

Jul 26th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. every tick:
  2. loop all players:
  3. set name of sidebar of loop-player to "&3&lWelcome to the server"
  4. set score "&9Your name: &b%loop-player%" in sidebar of loop-player to 0
  5. set score "&9Kills: &b%{kills::%UUID of loop-player%}%" in sidebar of loop-player to -1
  6. set score "&9Deaths: &b%{deaths::%UUID of loop-player%}%" in sidebar of loop-player to -2
  7. set score "&9K/D: &b%{kd::%UUID of loop-player%}%" in sidebar of loop-player to -3
  8. on first join:
  9. set {kills::%UUID of player%} to 0
  10. set {deaths::%UUID of player%} to 0
  11. set {kd::%UUID of player%} to 0
  12. on join:
  13. set {login.%UUID of player%} to 1
  14. command /editplayerstats [<text>] [<player>] [<text>] [<number>]:
  15. permission: sk.command.eps
  16. aliases: /eps
  17. trigger:
  18. if arg-1 is not "add" or "set":
  19. send "&cUsage:/editplayerstats <add|set> <player> <kills|deaths> <count>"
  20. stop
  21. if arg-1 is not set:
  22. send "&cUsage:/editplayerstats <add|set> <player> <kills|deaths> <count>"
  23. stop
  24. if arg-3 is not "kills" or "deaths":
  25. send "&cUsage:/editplayerstats <add|set> <player> <kills|deaths> <count>"
  26. stop
  27. if arg-1 is "add":
  28. if arg-3 is "kills":
  29. add arg-4 to {kills::%UUID of arg-2%}
  30. send "&b%arg-4% added to Kills of %arg-2%"
  31. wait 1 tick
  32. wipe arg-2's sidebar
  33. if arg-3 is "deaths":
  34. add arg-4 to {deaths::%UUID of arg-2%}
  35. send "&b%arg-4% added to Deaths of %arg-2%"
  36. wait 1 tick
  37. wipe arg-2's sidebar
  38. if arg-1 is "set":
  39. if arg-3 is "kills":
  40. set {kills::%UUID of arg-2%} to arg-4
  41. send "&bKills of %arg-2% was set to %arg-4%"
  42. wait 1 tick
  43. wipe arg-2's sidebar
  44. if arg-3 is "deaths":
  45. set {deaths::%UUID of arg-2%} to arg-4
  46. send "&bDeaths of %arg-2% was set to %arg-4%"
  47. wait 1 tick
  48. wipe arg-2's sidebar
  49. on death:
  50. victim is a player
  51. if attacker is a player:
  52. strike lightning effect at victim
  53. add 1 to {deaths::%UUID of victim%}
  54. add 1 to {kills::%UUID of attacker%}
  55. set the death message to "&3%victim%&bは&3%attacker%&bに殺された"
  56. force victim to respawn
  57. wait 1 tick
  58. wipe attacker's sidebar
  59. wipe victim's sidebar
  60. if attacker is not a player:
  61. add 1 to {deaths::%UUID of victim%}
  62. force victim to respawn
  63. set the death message to "&3%victim%&bは死亡した"
  64. wait 1 tick
  65. wipe victim's sidebar
  66. every tick:
  67. loop all players:
  68. if {deaths::%UUID of loop-player%} is not 0:
  69. set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
  70. if {deaths::%UUID of loop-player%} is 0:
  71. set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
  72. add 0 to {kills::%UUID of loop-player%}
  73. add 0 to {deaths::%UUID of loop-player%}
  74. add 0 to {kd::%UUID of loop-player%}
  75. command /playerstatus [<offline player>]:
  76. aliases: /pstatus,/status
  77. usage: &c/playerstatus <player>
  78. trigger:
  79. if arg-1 is set:
  80. if {login.%UUID of arg-1%} is 1:
  81. send "&3%arg-1%'s status"
  82. send "&9Kills: &b%{kills::%UUID of arg-1%}%"
  83. send "&9Deaths: &b%{deaths::%UUID of arg-1%}%"
  84. send "&9K/D: &b%{kd::%UUID of arg-1%}%"
  85. else:
  86. send "&7[&4Error&7] &cThat player's status is not found"
  87. if arg-1 is not set:
  88. send "&3%player%'s status"
  89. send "&9Kills: &b%{kills::%UUID of player%}%"
  90. send "&9Deaths: &b%{deaths::%UUID of player%}%"
  91. send "&9K/D: &b%{kd::%UUID of player%}%"
Advertisement
Add Comment
Please, Sign In to add comment