Log kick message

This commit is contained in:
q13x 2022-12-24 12:18:29 -08:00
parent 7fbbe3fdf3
commit b935337fcf

View File

@ -124,6 +124,9 @@ export function loginServer(ip: string, port: number, client: ProxiedPlayer) {
mcClient.on('end', () => {
client.ws.close()
})
mcClient.on('kick_disconnect', kick => {
logger.warn(`Player ${client.username} was kicked from the server! Reason: ${kick.reason}`)
})
logger.info(`Player ${client.username} has been connected to the server.`)
res()
})