diff --git a/src/db/Player.ts b/src/db/Player.ts index f35cd8a..c8ee48f 100644 --- a/src/db/Player.ts +++ b/src/db/Player.ts @@ -163,6 +163,7 @@ export default class Player { for (let i = 0; i <= LINEUPS; i++) { const copy = baseLineup; copy.index = 0; + copy.name = `Team ${i}`; dataObj.lineup.lineups[i] = copy; } diff --git a/src/server/packets/PlayerLoginCsReq.ts b/src/server/packets/PlayerLoginCsReq.ts index 50710ef..a1d2c9c 100644 --- a/src/server/packets/PlayerLoginCsReq.ts +++ b/src/server/packets/PlayerLoginCsReq.ts @@ -62,6 +62,8 @@ export default async function handle(session: Session, packet: Packet) { lineups: {} } for (let i = 0; i <= LINEUPS; i++) { + let copy = baseLineup; + copy.name = `Team ${i}`; plr.db.lineup.lineups[i] = baseLineup; } plr.save();