LukaMC59

Untitled

Oct 18th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1.  
  2. function getPlayerGroup(p: offlineplayer) :: text:
  3. "%configuration section ""users"" get of ""plugins/PermissionsEx/permissions.yml""%" contain "-":
  4. set {_p} to uuid of {_p}
  5. set {_group::*} to value list "users.%{_p}%.group" get of "plugins/PermissionsEx/permissions.yml"
  6. return {_group::1}
  7.  
  8.  
  9. function initiateScoreboard(p: player, t: text):
  10. {_t} is "start":
  11. set {_rank} to getPlayerGroup({_player})
  12. wipe {_p}'s sidebar
  13. set name of sidebar of {_p} to "&8» &9KitPvPV6 &8«"
  14. set score "&2" in sidebar of {_p} to 27
  15. set score "&9Name&8 » &7%{_p}%" in sidebar of {_p} to 26
  16. set score "&8" in sidebar of {_p} to 25
  17. set score "&9Rank&8 » %{_rank}%" in sidebar of {_p} to 24
  18. set score "&8&m---------------&2" in sidebar of {_p} to 23
  19. set score "&9Kills&8 »&7 %{totalkills.%{_p}%}%" in sidebar of {_p} to 22
  20. set score "&6" in sidebar of {_p} to 21
  21. set score "&9&8 » &9%{totaldeaths.%{_p}%}%" in sidebar of {_p} to 20
  22. set score "&3" in sidebar of {_p} to 19
  23. set score "&9KDR&8 »&9 &9%{stats.kills.%{_p}%}/{stats.deaths.%{_p}%}%" in sidebar of {_p} to 18
  24. set score "&8&m---------------&3" in sidebar of {_p} to 17
  25.  
  26. {_t} is "stop":
  27. wipe {_p}'s sidebar
  28.  
  29. on join:
  30. while player is online:
  31. wait 5 ticks
  32. initiateScoreboard(player, "start")
  33. wait 10 seconds
  34.  
  35.  
  36.  
  37.  
  38. on first join:
  39. set {totalkills.%player%} to 0
  40. set {totaldeaths.%player%} to 0
  41. set {currentkillstreak.%player%} to 0
  42. set {bestkillstreak.%player%} to 0
  43.  
  44. on death:
  45. victim is a player
  46. attacker is a player
  47. add 1 to {totalkills.%attacker%}
  48. add 1 to {totaldeaths.%victim%}
Add Comment
Please, Sign In to add comment