mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-19 22:50:19 +00:00
implemented the playerlist and player count
This commit is contained in:
@@ -322,6 +322,7 @@ impl Client {
|
||||
self.disconnect();
|
||||
}
|
||||
|
||||
// Panics when userdata is not set!
|
||||
pub fn get_name(&self) -> &str {
|
||||
&self.info.as_ref().unwrap().username
|
||||
}
|
||||
@@ -330,6 +331,7 @@ impl Client {
|
||||
self.id
|
||||
}
|
||||
|
||||
// Panics when userdata is not set!
|
||||
pub fn get_roles(&self) -> &str {
|
||||
&self.info.as_ref().unwrap().roles
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user