#Help with scoreboard
1 messages · Page 1 of 1 (latest)
here is my scoreboard skript
options:
enabled: true
title: &6&lᴢᴀᴘʙᴏx7
ip: &7ᴢᴀᴘʙᴏx7.ᴍɪɴᴇʜᴜᴛ.ɢɢ
on join:
while player is online:
wait 400 tick
scoreboard(player)
function scoreboard(p: player):
set title of {_p}'s scoreboard to "&5 {@title}"
set line 1 of {_p}'s scoreboard to "&6"
set line 2 of {_p}'s scoreboard to "&6Player:&f %{_p}%"
set line 3 of {_p}'s scoreboard to "&3"
set line 8 of {_p}'s scoreboard to "&6Stats:"
set line 9 of {_p}'s scoreboard to "&6Kills: &f%placeholder "statistic_player_kills" from {_p}%"
set line 10 of {_p}'s scoreboard to "&6Mobs Killed: &f%placeholder "statistic_mob_kills" from {_p}%"
set line 11 of {_p}'s scoreboard to "&3"
set line 12 of {_p}'s scoreboard to "{@ip}"
I was told lines 9 and 10 were wrong
and that its lagging my server
because my issue was that my tps was running very low
like 12-15
!format
:technologist: Code Blocks
To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:
```
Code here
```
options:
enabled: true
title: &6&lᴢᴀᴘʙᴏx7
ip: &7ᴢᴀᴘʙᴏx7.ᴍɪɴᴇʜᴜᴛ.ɢɢ
on join:
while player is online:
wait 400 tick
scoreboard(player)
function scoreboard(p: player):
set title of {_p}'s scoreboard to "&5 {@title}"
set line 1 of {_p}'s scoreboard to "&6"
set line 2 of {_p}'s scoreboard to "&6Player:&f %{_p}%"
set line 3 of {_p}'s scoreboard to "&3"
set line 8 of {_p}'s scoreboard to "&6Stats:"
set line 9 of {_p}'s scoreboard to "&6Kills: &f%placeholder "statistic_player_kills" from {_p}%"
set line 10 of {_p}'s scoreboard to "&6Mobs Killed: &f%placeholder "statistic_mob_kills" from {_p}%"
set line 11 of {_p}'s scoreboard to "&3"
set line 12 of {_p}'s scoreboard to "{@ip}"
sorry
fixed now