mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 13:30:43 +00:00
wip small stuff
This commit is contained in:
1 parent
5d8c9cd792
commit
0b6ad43fbb
2 files changed
+13
-8
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
# BeamMP Server
|
||||||
|
A BeamMP server implementation in Rust, meant to (hopefully) replace the official server implementation one day.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
TODO
|
||||||
+8
-8
@@ -149,14 +149,14 @@ impl Server {
|
|||||||
clients_incoming_lock.len()
|
clients_incoming_lock.len()
|
||||||
);
|
);
|
||||||
for i in 0..clients_incoming_lock.len() {
|
for i in 0..clients_incoming_lock.len() {
|
||||||
joined_names.push(
|
let name = clients_incoming_lock[i]
|
||||||
clients_incoming_lock[i]
|
.info
|
||||||
.info
|
.as_ref()
|
||||||
.as_ref()
|
.unwrap()
|
||||||
.unwrap()
|
.username
|
||||||
.username
|
.clone();
|
||||||
.clone(),
|
info!("Welcome {name}!");
|
||||||
);
|
joined_names.push(name);
|
||||||
self.clients.push(clients_incoming_lock.swap_remove(i));
|
self.clients.push(clients_incoming_lock.swap_remove(i));
|
||||||
}
|
}
|
||||||
trace!("Accepted incoming clients!");
|
trace!("Accepted incoming clients!");
|
||||||
|
|||||||
Reference in new issue
Block a user