function tabPriority(p: player): if {ranks::owner::*} contains {_p}'s uuid: set {_t} to team named "1-team" set team prefix of team named "1-team" to "&1&r" set team color of {_t} to red if {ranks::co-owner::*} contains {_p}'s uuid: set {_t} to team named "2-team" set team prefix of team named "2-team" to "&2&r" set team color of {_t} to light red if {ranks::manager::*} contains {_p}'s uuid: set {_t} to team named "3-team" set team prefix of team named "3-team" to "&3&r" set team color of {_t} to purple if {ranks::head-admin::*} contains {_p}'s uuid: set {_t} to team named "4-team" set team prefix of team named "4-team" to "&4&r" set team color of {_t} to yellow if {ranks::admin::*} contains {_p}'s uuid: set {_t} to team named "5-team" set team prefix of team named "5-team" to "&5&r" set team color of {_t} to yellow if {ranks::developer::*} contains {_p}'s uuid: set {_t} to team named "6-team" set team prefix of team named "6-team" to "&6&r" set team color of {_t} to light blue if {ranks::mod::*} contains {_p}'s uuid: set {_t} to team named "7-team" set team prefix of team named "7-team" to "&7&r" set team color of {_t} to dark green if {ranks::head-builder::*} contains {_p}'s uuid: set {_t} to team named "8-team" set team prefix of team named "8-team" to "&8&r" set team color of {_t} to dark blue if {ranks::builder::*} contains {_p}'s uuid: set {_t} to team named "9-team" set team prefix of team named "9-team" to "&9&r" set team color of {_t} to dark blue if {ranks::helper::*} contains {_p}'s uuid: set {_t} to team named "10-team" set team prefix of team named "10-team" to "&10&r" set team color of {_t} to dark blue if {ranks::hero::*} contains {_p}'s uuid: set {_t} to team named "11-team" set team prefix of team named "11-team" to "&11&r" set team color of {_t} to light purple if {ranks::mvp++::*} contains {_p}'s uuid: set {_t} to team named "12-team" set team prefix of team named "12-team" to "&12&r" set team color of {_t} to gold if {ranks::mvp+::*} contains {_p}'s uuid: set {_t} to team named "13-team" set team prefix of team named "13-team" to "&13&r" set team color of {_t} to light blue if {ranks::mvp::*} contains {_p}'s uuid: set {_t} to team named "14-team" set team prefix of team named "14-team" to "&14&r" set team color of {_t} to light blue if {ranks::vip::*} contains {_p}'s uuid: set {_t} to team named "15-team" set team prefix of team named "15-team" to "&15&r" set team color of {_t} to lime if {ranks::default::*} contains {_p}'s uuid: set {_t} to team named "16-team" set team prefix of team named "16-team" to "&16&r" set team color of {_t} to gray add {_p} to {_t} #broadcast "%{_t}'s team prefix% %{_t}% test" function showTab(p: player, n: num): if {_n} is 1: set {_prefix} to {CHAT::%{_p}'s uuid%::PREFIX} set {_lvl} to {profile::%{_p}'s uuid%::lvl} set {_lvlColor} to {profile::%{_p}'s uuid%::lvlColor} set {_plus} to {profile::%{_p}'s uuid%::plus} if {_plus} is true: set {_formatMessage} to "&8[%{_lvlColor}%%{_lvl}%✫&8] %coloured {_p}'s prefix%%{_p}% &d&l+" set {_p}'s display name to "%coloured {_p}'s prefix%%{_p}% &d&l+" else: set {_formatMessage} to "&8[%{_lvlColor}%%{_lvl}%✫&8] %coloured {_p}'s prefix%%{_p}%" set {_p}'s display name to "%coloured {_p}'s prefix%%{_p}%" set {_p}'s tablist header to "&e&m %nl%&x&E&7&F&F&0&0S&x&D&F&F&F&0&0a&x&D&7&F&F&0&0n&x&C&F&F&F&0&0d&x&C&7&F&F&0&0b&x&B&F&F&F&0&0o&x&B&7&F&F&0&0x &x&B&0&F&F&0&0N&x&A&8&F&F&0&0e&x&A&0&F&F&0&0t&x&9&8&F&F&0&0w&x&9&0&F&F&0&0o&x&8&8&F&F&0&0r&x&8&0&F&F&0&0k %nl%&8&f%number of all players% Players&8" set {_p}'s tablist footer to "&e&m " set {_p}'s tablist name to {_formatMessage} if {_n} is 2: set {_prefix} to {CHAT::%{_p}'s uuid%::PREFIX} set {_lvl} to {profile::%{_p}'s uuid%::lvl} set {_lvlColor} to {profile::%{_p}'s uuid%::lvlColor} set {_plus} to {CHAT::%{_p}'s uuid%::Plus} if {_plus} is set: set {_formatMessage} to "&8[%{_lvlColor}%%{_lvl}%✫&8] %coloured {_p}'s prefix%%{_plus}%&7 %{_p}%" set {_p}'s display name to "%coloured {_p}'s prefix%%{_plus}%&7 %{_p}% " else: set {_formatMessage} to "&8[%{_lvlColor}%%{_lvl}%✫&8] %coloured {_p}'s prefix%%{_p}%" set {_p}'s display name to "%coloured {_p}'s prefix%%{_p}%" set {_p}'s tablist header to "&e&m %nl%&x&E&7&F&F&0&0S&x&D&F&F&Fs0&0a&x&D&7&F&F&0&0n&x&C&F&F&F&0&0d&x&C&7&F&F&0&0b&x&B&F&F&F&0&0o&x&B&7&F&F&0&0x %nl%&8&f%number of all players% Players&8" set {_p}'s tablist footer to "&e&m " set {_p}'s tablist name to {_formatMessage} function showScoreboard(p: player): set {_lvl} to {profile::%{_p}'s uuid%::lvl} set {_lvlColor} to {profile::%{_p}'s uuid%::lvlColor} set {afkpoints} to {profile::%{_p}'s uuid%::afkPoints} set title of {_p}'s scoreboard to "<##009688>&l⋅ Sandbox ⋅" set line 12 of {_p}'s scoreboard to "" set line 11 of {_p}'s scoreboard to "&a✫ &fLevel: &8[%{_lvlColor}%%{_lvl}%&8]" set line 10 of {_p}'s scoreboard to " &7%getLVLPercentage({_p})%%% %getLvlBar({_p})%" set line 9 of {_p}'s scoreboard to "&6🔥 &fQuest Coins: &6%{questcoins::%{_p}'s uuid%}%" set line 8 of {_p}'s scoreboard to "&b💎 &fAFK Points: &b%{afkpoints}%" set line 7 of {_p}'s scoreboard to "" set line 6 of {_p}'s scoreboard to "&4🗡 &fKills: &4%{profile::%{_p}'s uuid%::kills}%" set line 5 of {_p}'s scoreboard to "&4☠ &fDeaths: &4%{deaths::%{_p}'s uuid%}%" set line 4 of {_p}'s scoreboard to "" set line 1 of {_p}'s scoreboard to "&7&o&nsandbox.minehut.gg" every 1 seconds: loop all players: if loop-player is in "lobbyWorld": showScoreboard(loop-value) #showTab(loop-value, 1) #tabPriority(loop-value) if loop-player is in "BoxWorld": tabPriority(loop-value) showScoreboard(loop-value) showTab(loop-value, 2)