hi guys, i don't know well where advise this issue:
in this link:
find this code:
for(var i = 0; packet.getTargetPlayers().length; i++)
it seems like you forgot the comparison in the middle (i < ......)
Thanks for pointing this out I'll raise it with the documentation team.