heartbeat fixes + guest support

This commit is contained in:
Luuk van Oijen
2023-11-20 13:33:07 +01:00
parent 4e985bc0e0
commit 5097244c76
4 changed files with 12 additions and 10 deletions

View File

@@ -30,14 +30,14 @@ pub enum Argument {
#[derive(Debug)]
pub struct PlayerIdentifiers {
pub ip: String,
pub beammp_id: u64,
pub beammp_id: String,
}
impl PlayerIdentifiers {
pub fn to_map(&self) -> HashMap<String, Argument> {
let mut m = HashMap::new();
m.insert(String::from("ip"), Argument::String(self.ip.clone()));
m.insert(String::from("beammp"), Argument::Integer(self.beammp_id as i64)); // TODO: Uhh we could lose data here
m.insert(String::from("beammp"), Argument::String(self.beammp_id.clone()));
m
}
}