Log IP addresses of connecting players

This commit is contained in:
Markus Scully 2023-06-05 14:37:59 +02:00
parent 20177fe547
commit 8f2c968403
2 changed files with 2 additions and 1 deletions

View file

@ -35,7 +35,7 @@ class Room {
this.setTeam(player, this.teamA.size > this.teamB.size ? 'b' : 'a');
this.world.addPlayer(player);
this.sendWorld(player);
wingbase.log(`${player.name} joined ${this.name}.`);
wingbase.log(`[${player.connection.ip}] ${player.name} joined ${this.name}.`);
this.message('roomEnter', player.name, 'team' + player.team);
}