70sOn7

SideBar

Jan 12th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. every 1 second:
  2. loop all players:
  3. if {credits.%loop-player%} is not set:
  4. set {credits.%loop-player%} to 0
  5. wipe loop-player's sidebar
  6. set name of sidebar of loop-player to "&3&l%{title}%"
  7. set score "🚨🚨" in sidebar of loop-player to 15
  8. set score "&3Credits:" in sidebar of loop-player to 14
  9. set score " &b%{credits.%loop-player%}%" in sidebar of loop-player to 13
  10. set score "🚨🚨🚨🚨" in sidebar of loop-player to 12
  11. set score "&3Discord:" in sidebar of loop-player to 11
  12. set score " &b%{discord}%" in sidebar of loop-player to 10
  13. set score "🚨🚨🚨🚨🚨🚨" in sidebar of loop-player to 9
  14. set score "&3BuyCraft:" in sidebar of loop-player to 8
  15. set score "&b %{buycraft}%" in sidebar of loop-player to 7
  16. set score "🚨🚨🚨🚨🚨🚨🚨🚨" in sidebar of loop-player to 6
  17. set score " &b%{serverip}%" in sidebar of loop-player to 5
  18.  
  19. command /setup [<text>] [<text>]:
  20. permission: server.setup
  21. permission message: &2&lPERMISSION&8: &2You can not do this!
  22. trigger:
  23. if arg-1 is not set:
  24. send "&3Options: &bTitle, Discord, Buycraft, ServerIP"
  25. stop
  26. if arg-1 is not "title" or "discord" or "buycraft" or "serverip":
  27. send "&3Options: &bTitle, Discord, Buycraft, ServerIP"
  28. stop
  29. if arg-2 is not set:
  30. send "&3Error: &bArgument not set!"
  31. stop
  32. if arg-1 is set:
  33. if arg-2 is set:
  34. if arg-1 is "title":
  35. set {title} to "%arg-2%"
  36. send "&3Title &bset to %arg-2%&b"
  37. if arg-1 is "discord":
  38. set {discord} to "%arg-1%"
  39. send "&3Discord Link &bset to %arg-2%&b"
  40. if arg-1 is "buycraft":
  41. set {buycraft} to "%arg-2%"
  42. send "&3BuyCraft &bset to %arg-2%&b"
  43. if arg-1 is "serverip":
  44. set {serverip} to "%arg-2%"
  45. send "&3Discord &bset to %arg-2%&b"
Add Comment
Please, Sign In to add comment