mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-11-21 13:06:05 -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', () => {
|
mcClient.on('end', () => {
|
||||||
client.ws.close()
|
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.`)
|
logger.info(`Player ${client.username} has been connected to the server.`)
|
||||||
res()
|
res()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user