options: # ===== OGÓLNE ===== scoreboard-name: main refresh: 3 seconds # ===== TYTUŁ ===== title: &6&lSERWER &fMC # ===== SEPARATORY ===== line-space: &8┃ line-separator: &7&m---------------- # ===== TEKSTY ===== nick-text: &7Nick: money-text: &7Saldo: time-text: &7Czas gry: world-text: &7Świat: ping-text: &7Ping: online-text: &7Online: rank-text: &7Ranga: stats-text: &7Statystyki: # ===== KOLORY ===== value-color: &f money-color: &a time-color: &b world-color: &e online-color: &a kills-color: &a deaths-color: &c ping-good: &a ping-medium: &e ping-bad: &c # ===== FORMATY ===== money-suffix: $ online-format: "%online players%/%max players%" on join: wait 5 ticks create scoreboard {@scoreboard-name} for player set title of scoreboard {@scoreboard-name} for player to {@title} updateBoard(player) every {@refresh}: loop all players: updateBoard(loop-player) function updateBoard(p: player): clear lines of scoreboard {@scoreboard-name} for {_p} # ===== PING ===== set {_ping} to ping of {_p} if {_ping} <= 80: set {_pingColor} to {@ping-good} else if {_ping} <= 150: set {_pingColor} to {@ping-medium} else: set {_pingColor} to {@ping-bad} # ===== CZAS GRY ===== set {_time} to play time of {_p} set {_timeFormatted} to "%{_time}%" replace all " hours" with "h" in {_timeFormatted} replace all " minutes" with "m" in {_timeFormatted} # ===== RANGA (LuckPerms) ===== set {_rank} to prefix of {_p} if {_rank} is not set: set {_rank} to "&7Brak" # ===== STATYSTYKI ===== set {_kills} to kills of {_p} set {_deaths} to deaths of {_p} set score "{@line-separator}" in scoreboard {@scoreboard-name} for {_p} to 15 set score "{@nick-text}" in scoreboard {@scoreboard-name} for {_p} to 14 set score "{@value-color}%name of {_p}%" in scoreboard {@scoreboard-name} for {_p} to 13 set score "{@line-space}" in scoreboard {@scoreboard-name} for {_p} to 12 set score "{@rank-text}" in scoreboard {@scoreboard-name} for {_p} to 11 set score "%{_rank}%" in scoreboard {@scoreboard-name} for {_p} to 10 set score "{@online-text} {@online-color}{@online-format}" in scoreboard {@scoreboard-name} for {_p} to 9 set score "{@money-text} {@money-color}%balance of {_p}%{@money-suffix}" in scoreboard {@scoreboard-name} for {_p} to 8 set score "{@line-space} " in scoreboard {@scoreboard-name} for {_p} to 7 set score "{@time-text} {@time-color}%{_timeFormatted}%" in scoreboard {@scoreboard-name} for {_p} to 6 set score "{@world-text} {@world-color}%world of {_p}%" in scoreboard {@scoreboard-name} for {_p} to 5 set score "{@ping-text} %{_pingColor}%%{_ping}%ms" in scoreboard {@scoreboard-name} for {_p} to 4 set score "{@line-space} " in scoreboard {@scoreboard-name} for {_p} to 3 set score "{@stats-text}" in scoreboard {@scoreboard-name} for {_p} to 2 set score "&aZabójstwa: {@kills-color}%{_kills}%" in scoreboard {@scoreboard-name} for {_p} to 1 set score "&cŚmierci: {@deaths-color}%{_deaths}%" in scoreboard {@scoreboard-name} for {_p} to 0