Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 1 seconds:
- loop all players:
- if {sw.player.%uuid of loop-player%.playing} is true:
- if {sw.arena.%{sw.player.%uuid of loop-player%.arena}%.status} is "{@ingame}" or "{@restarting}":
- invoke "sw.checklocation" from loop-player
- if stylish scoreboard "SWGAME-%loop-player%" does not exist:
- create new stylish scoreboard named "SWGAME-%loop-player%"
- loop 14 times:
- create a new id based score "SWGAME-%loop-player%Slot%loop-number%" with text "&%loop-number%" slot loop-number for stylish scoreboard "SWGAME-%loop-player%"
- wait 3 ticks
- set title of stylish scoreboard "SWGAME-%loop-player%" to "&6&lSKYWARS"
- set stylish scoreboard of loop-player to "SWGAME-%loop-player%"
- set the text of id "SWGAME-%loop-player%Slot14" to "&7&l%now%"
- set the text of id "SWGAME-%loop-player%Slot13" to "&fStatus"
- set the text of id "SWGAME-%loop-player%Slot12" to "&6&l• &e%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.status}%"
- set the text of id "SWGAME-%loop-player%Slot11" to "&5"
- set the text of id "SWGAME-%loop-player%Slot10" to "&fNext Event:"
- set the text of id "SWGAME-%loop-player%Slot9" to "&6&l• &e%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.gametime::event.sb}% &c&l%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.gametime::event}%:%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.gametime::seconds}%"
- set the text of id "SWGAME-%loop-player%Slot8" to "&1"
- set the text of id "SWGAME-%loop-player%Slot7" to "&fPlayers left: &e%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.playing}%"
- set the text of id "SWGAME-%loop-player%Slot6" to "&4"
- set the text of id "SWGAME-%loop-player%Slot5" to "&fKills: &e%{sw.gamekills.%{sw.player.%uuid of loop-player%.arena}%::%loop-player%}%"
- set the text of id "SWGAME-%loop-player%Slot4" to "&6"
- set the text of id "SWGAME-%loop-player%Slot3" to "&fMap: &e%{sw.player.%uuid of loop-player%.arena}%"
- set the text of id "SWGAME-%loop-player%Slot2" to "&8"
- set the text of id "SWGAME-%loop-player%Slot1" to "{@websitename}"
- if {sw.arena.%{sw.player.%uuid of loop-player%.arena}%.status} is "{@waiting}" or "{@starting}" or "{@full}":
- if stylish scoreboard "SWLOBBY-%loop-player%" does not exist:
- create new stylish scoreboard named "SWLOBBY-%loop-player%"
- loop 14 times:
- create a new id based score "SWLOBBY-%loop-player%Slot%loop-number%" with text "&%loop-number%" slot loop-number for stylish scoreboard "SWLOBBY-%loop-player%"
- wait 3 ticks
- set title of stylish scoreboard "SWLOBBY-%loop-player%" to "&6&lSKYWARS"
- set stylish scoreboard of loop-player to "SWLOBBY-%loop-player%"
- set the text of id "SWLOBBY-%loop-player%Slot14" to "&5"
- set the text of id "SWLOBBY-%loop-player%Slot13" to "&fStatus"
- set the text of id "SWLOBBY-%loop-player%Slot12" to "&6&l• %{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.status}%"
- set the text of id "SWLOBBY-%loop-player%Slot11" to "&8&1"
- set the text of id "SWLOBBY-%loop-player%Slot10" to "&fMap"
- set the text of id "SWLOBBY-%loop-player%Slot9" to "&6&l• &e%{sw.player.%uuid of loop-player%.arena}%"
- set the text of id "SWLOBBY-%loop-player%Slot8" to "&4&1"
- set the text of id "SWLOBBY-%loop-player%Slot7" to "&fStarting in"
- set the text of id "SWLOBBY-%loop-player%Slot6" to "&6&l• &e%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.seconds}%"
- set the text of id "SWLOBBY-%loop-player%Slot5" to "&2"
- set the text of id "SWLOBBY-%loop-player%Slot4" to "&fPlayers"
- set the text of id "SWLOBBY-%loop-player%Slot3" to "&6&l• &e%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.playing}%/%{sw.arena.%{sw.player.%uuid of loop-player%.arena}%.max}%"
- set the text of id "SWLOBBY-%loop-player%Slot2" to "&1"
- set the text of id "SWLOBBY-%loop-player%Slot1" to "{@websitename}"
- else:
- delete stylish scoreboard "SWLOBBY-%loop-player%"
- delete stylish scoreboard "SWGAME-%loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement