#.getParticipants()[].displayName Error
1 messages · Page 1 of 1 (latest)
it's array with objects
world.scoreboard.getObjective().getPartipicants().filter(filter => filter.displayName == "test")[0].getScore(world.scoreboard.getObjective());
how would i get the offline's player names tho
it shows commands.scoreboard.players.offlinePlayerName
i changed yours tho
i just did
const moneyParticipants = moneySb.getParticipants()
moneyParticipants[1].displayName
[1] is jsut to test
use [0]
that displays me
i wanted to check otehr players too
so the offline ones
im just testing but it doesnt work with offline names
hmm weird