update disconnect packet
This commit is contained in:
parent
a797201ecb
commit
4c3f62567e
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue