Getting players from Tablist using nameOnTablist() #3404
Labels
possible bug
Stage1
just created by someone new to the project, we don't know yet if it deserves an implementation / a f
Detailed description of a problem
Hello, i wanted to use the provided code for getting players from the tablist. The code i used was from (https://github.com/u9g/mineflayer-docs/blob/main/common-tasks/reading-the-tab-list.md). As soon as i ran the code this issue came up. I used it in bot.on("spawn"), so thats not the problem.
const name = player.nameOnTablist()
^
TypeError: player.nameOnTablist is not a function
What did you try yet?
tried writing it a bit differnt, changed player.nameOnTablist(), to bot.players.OnTablist, gave error to.String() cant read properties of to.String
Your current code
The text was updated successfully, but these errors were encountered: