diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 96fad31..db5bf3e 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -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) {