I am trying to test a new scoreboard skript I found off of the spigot website to see if it works so I can fix something else, but it doesnt work. Heres a screen shot of my plugins
and heres the code I found thats not working:
every 5 seconds:
loop all players:
refreshScoreboard(loop-player)
function refreshScoreboard(p: player):
wipe {_p}'s sidebar
set {_uuid} to uuid of {_p}
set name of sidebar of {_p} to "&5&lArena"
set score "&d&m«--------------------«" in sidebar of {_p} to 16
set score " &5Kills &7» %{ab::%{_uuid}%::kills}%" in sidebar of {_p} to 15
set score " &5Deaths &7» %{ab::%{_uuid}%::deaths}%" in sidebar of {_p} to 14
set score "&d&m»--------------------»" in sidebar of {_p} to 11
on death of player:
attacker is a player
victim is a player
add 1 to {ab::%uuid of attacker%::kills}
add 1 to {ab::%uuid of victim%::deaths}
The kill counter wasnt working when other players were online too so I wanted to try this but the error says: "The function 'refreshScoreboard' does not exist (ffa.sk, line 3: refreshScoreboard(loop-player)')"
any fix? thanks
and heres the code I found thats not working:
every 5 seconds:
loop all players:
refreshScoreboard(loop-player)
function refreshScoreboard(p: player):
wipe {_p}'s sidebar
set {_uuid} to uuid of {_p}
set name of sidebar of {_p} to "&5&lArena"
set score "&d&m«--------------------«" in sidebar of {_p} to 16
set score " &5Kills &7» %{ab::%{_uuid}%::kills}%" in sidebar of {_p} to 15
set score " &5Deaths &7» %{ab::%{_uuid}%::deaths}%" in sidebar of {_p} to 14
set score "&d&m»--------------------»" in sidebar of {_p} to 11
on death of player:
attacker is a player
victim is a player
add 1 to {ab::%uuid of attacker%::kills}
add 1 to {ab::%uuid of victim%::deaths}
The kill counter wasnt working when other players were online too so I wanted to try this but the error says: "The function 'refreshScoreboard' does not exist (ffa.sk, line 3: refreshScoreboard(loop-player)')"
any fix? thanks