Guest User

Untitled

a guest
Sep 29th, 2023
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. command /score [<text>] [<player>] [<number>]:
  2. usage: &cIncorrect usage
  3. permission: crownwars.score
  4. permission message: &c&lHey!&7It seems your not supposed to be doing that. Ask a admin for help
  5. trigger:
  6. if arg-1 is "add":
  7. if player has permission "crownwars.score.admin":
  8. add arg-3 to {score::%arg-2%}
  9. send "&6[CW] &aSuccessfully added %arg-3% to %arg-2%s Score"
  10. if arg-1 is "remove":
  11. if player has permission "crownwars.score.admin":
  12. remove arg-3 from {score::%arg-2%}
  13. send "&6[CW] &aSuccessfully removed %arg-3% from %arg-2%s Score"
  14. if arg-1 is "set":
  15. if player has permission "crownwars.score.admin":
  16. set {score::%arg-2%} to arg-3
  17. send "&6[CW] &aSuccessfully set %arg-2%s Score to %arg-3%"
  18. if arg-1 is "clear":
  19. if player has permission "crownwars.score.admin":
  20. set {score::%arg-2%} to 0
  21. send "&6[CW] &aCleared %arg-2%s score"
  22. if arg-1 is "list":
  23. if player has permission "crownwars.score.list":
  24. send "&6[CW] &aScore list"
  25. loop all players:
  26. send "&e%Loop-player% - %{score::%loop-player%}%"
  27. else:
  28. send "&aScore list"
  29. loop all players:
  30. if player has permission "crownwars.receivealerts":
  31. send "&6[CW] &e%player% Is looking at the scores!"
  32. loop all players:
  33. send "&e%Loop-player% - %{score::%loop-player%}%"
  34. if arg-1 is not set:
  35. send "&6[CW] &eYour score is %{score::%player%}%"
  36. On death:
  37. add 1 to {score::%attacker%}
  38. on join:
  39. if {kills::%player's uuid%} is not set:
  40. set {kills::%player's uuid%} to 0
  41. if {deaths::%player's uuid%} is not set:
  42. set {deaths::%player's uuid%} to 0
  43. while player is online:
  44. set title of player's scoreboard to "&6&lCROWNWARS"
  45. set line 5 of player's scoreboard to "&fPlayer: &b%player%"
  46. set line 4 of player's scoreboard to "&fScore: &b%{Score::%player%}%"
  47. set line 3 of player's scoreboard to "&fKills: &b%{kills::%player%}%"
  48. set line 2 of player's scoreboard to "&fDeaths: &b%{deaths::%player%}%"
  49. set line 1 of player's scoreboard to "&7Server Ip: &bPlay.myserver.co"
  50. wait 1 second
  51. on death:
  52. if attacker is a player:
  53. if victim is a player:
  54. add 1 to {kills::%attacker%}
  55. add 1 to {deaths::%victim%}
  56. on disconnect:
  57. clear player's scoreboard
Advertisement
Add Comment
Please, Sign In to add comment