hook into player_kicked event

This commit is contained in:
Skillet 2023-02-16 19:08:34 -05:00 committed by GitHub
parent b96a9c259e
commit 426d476f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,7 @@ export default class DBLogPlayerTime extends DBLog {
await super.mount();
this.server.on('PLAYER_CONNECTED', this.onPlayerConnected);
this.server.on('PLAYER_DISCONNECTED', this.onPlayerDisconnected);
this.server.on('PLAYER_KICKED', this.onPlayerDisconnected);
}
async unmount() {
@ -91,6 +92,7 @@ export default class DBLogPlayerTime extends DBLog {
await super.unmount();
this.server.removeEventListener('PLAYER_CONNECTED', this.onPlayerConnected);
this.server.removeEventListener('PLAYER_DISCONNECTED', this.onPlayerDisconnected);
this.server.removeEventListener('PLAYER_KICKED', this.onPlayerDisconnected);
}
async onUpdatedA2SInformation(info) {