Zeldaboy111

Toggle-able Loop ]|[ Skript #430

Jul 4th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. options:
  2. prefix: &6Tycoon&8:&7
  3.  
  4. function sendBalance():
  5. if {tc.loopingBalance} is true:
  6. stop
  7. set {tc.loopingBalance} to true
  8. while {tc.loopingBalance} is true:
  9. if {tc.stopped} is true:
  10. delete {tc.loopingBalance}
  11. if size of online players is 0:
  12. delete {tc.loopingBalance}
  13. else:
  14. loop all players:
  15. send actionbar "&6Coins&8: &e%{tc.%uuid of loop-player%.balance}%" to loop-player
  16. wait 40 ticks
  17. on join:
  18. if {tc.%uuid of player%.balance} is not set:
  19. set {tc.%uuid of player%.balance} to 0
  20. sendBalance()
  21.  
  22. on enable:
  23. while {tc.loopingBalance} is true:
  24. wait 10 ticks
  25. if {tc.stopped}:
  26. sendBalance()
  27. delete {tc.stopped}
  28.  
  29. on disable:
  30. if {tc.loopingBalance} is true:
  31. set {tc.stopped} to true
  32.  
  33. on sign change:
  34. if line 1 is not "Tycoon":
  35. stop
  36. set line 1 to ""
  37.  
Advertisement
Add Comment
Please, Sign In to add comment