mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-07 08:16:24 +00:00
formatting
This commit is contained in:
@@ -524,7 +524,6 @@ impl Server {
|
||||
} else {
|
||||
self.clients.swap_remove(i);
|
||||
}
|
||||
|
||||
info!("Client {} disconnected!", id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,8 +54,12 @@ impl NotificationPacket {
|
||||
pub fn new<S: Into<String>>(msg: S) -> Self {
|
||||
Self(format!("J{}", msg.into()))
|
||||
}
|
||||
pub fn welcome<S: Into<String>>(msg: S) -> Self { Self(format!("JWelcome {}!", msg.into()))}
|
||||
pub fn left<S: Into<String>>(msg: S) -> Self { Self(format!("L{} left the server!", msg.into()))}
|
||||
pub fn welcome<S: Into<String>>(msg: S) -> Self {
|
||||
Self(format!("JWelcome {}!", msg.into()))
|
||||
}
|
||||
pub fn left<S: Into<String>>(msg: S) -> Self {
|
||||
Self(format!("L{} left the server!", msg.into()))
|
||||
}
|
||||
}
|
||||
|
||||
/// Protocol:
|
||||
|
||||
Reference in New Issue
Block a user