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:
parent
98ffb28eb2
commit
5b7b947804
3 changed files with 56 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue