mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-12-21 23:04:13 -08:00
Log kick message
This commit is contained in:
parent
7fbbe3fdf3
commit
b935337fcf
3
utils.ts
3
utils.ts
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user