mirror of https://github.com/zyllian/classics.git synced 2025-05-11 14:36:39 -07:00

implement kick command

This commit is contained in:
Zoey 2024-04-22 22:40:34 -07:00
parent 98ffb28eb2
commit 5b7b947804
No known key found for this signature in database
GPG key ID: 8611B896D1AAFAF2
3 changed files with 56 additions and 4 deletions

View file

@ -29,6 +29,8 @@ pub struct Player {
pub _addr: SocketAddr,
/// queue of packets to be sent to this player
pub packets_to_send: Vec<ServerPacket>,
/// whether this player should be kicked and the message to give
pub should_be_kicked: Option<String>,
}
/// enum describing types of players