diff --git a/src/client.js b/src/client.js index af3666b1..87e3705e 100644 --- a/src/client.js +++ b/src/client.js @@ -183,7 +183,8 @@ class Client extends Connection { if (this.status === ClientStatus.Disconnected) return this.write('disconnect', { hide_disconnect_screen: hide, - message: reason + message: reason, + filtered_message: '' }) this.close(reason) } diff --git a/src/serverPlayer.js b/src/serverPlayer.js index 89e100c5..4ef52437 100644 --- a/src/serverPlayer.js +++ b/src/serverPlayer.js @@ -117,7 +117,8 @@ class Player extends Connection { if (this.status === ClientStatus.Disconnected) return this.write('disconnect', { hide_disconnect_screen: hide, - message: reason + message: reason, + filtered_message: '' }) this.server.conLog('Kicked ', this.connection?.address, reason) setTimeout(() => this.close('kick'), 100) // Allow time for message to be recieved.