10:24 PM 12/04/2021
for some reason this code isn't working for me, theres no errors or anything it just doesnt work
const playersTeam = new Team(
Game.on(
player.team = playersTeam
})
can anyone help me please?
const playersTeam = new Team(
Players
, #0000CD
)Game.on(
playerJoin
, player => {player.team = playersTeam
})
can anyone help me please?
11:20 PM 12/04/2021
Instead of assigning the team directly, use the player.setTeam function
https://brickhill.gitlab.io/open-source/node-hill/classes/player.html#setteam
Using the function, node-hill will take care of sending the appropriate packets
https://brickhill.gitlab.io/open-source/node-hill/classes/player.html#setteam
Using the function, node-hill will take care of sending the appropriate packets