Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &6Tycoon&8:&7
- function sendBalance():
- if {tc.loopingBalance} is true:
- stop
- set {tc.loopingBalance} to true
- while {tc.loopingBalance} is true:
- if {tc.stopped} is true:
- delete {tc.loopingBalance}
- if size of online players is 0:
- delete {tc.loopingBalance}
- else:
- loop all players:
- send actionbar "&6Coins&8: &e%{tc.%uuid of loop-player%.balance}%" to loop-player
- wait 40 ticks
- on join:
- if {tc.%uuid of player%.balance} is not set:
- set {tc.%uuid of player%.balance} to 0
- sendBalance()
- on enable:
- while {tc.loopingBalance} is true:
- wait 10 ticks
- if {tc.stopped}:
- sendBalance()
- delete {tc.stopped}
- on disable:
- if {tc.loopingBalance} is true:
- set {tc.stopped} to true
- on sign change:
- if line 1 is not "Tycoon":
- stop
- set line 1 to ""
Advertisement
Add Comment
Please, Sign In to add comment