mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-04-17 20:36:00 +00:00
Fix: syntax error in registerPlayer
This commit is contained in:
@@ -59,7 +59,15 @@ class GameManager {
|
|||||||
// Broadcast updated player list
|
// Broadcast updated player list
|
||||||
await this.broadcastActivePlayers();
|
await this.broadcastActivePlayers();
|
||||||
|
|
||||||
return {
|
const response = {
|
||||||
|
success: true,
|
||||||
|
player: {
|
||||||
|
id: playerId,
|
||||||
|
username: username,
|
||||||
|
stats: {
|
||||||
|
wins: player.total_wins,
|
||||||
|
losses: player.total_losses,
|
||||||
|
draws: player.total_draws
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
activeGame: null // Will be populated if they are reconnecting
|
activeGame: null // Will be populated if they are reconnecting
|
||||||
|
|||||||
Reference in New Issue
Block a user