few changes
This commit is contained in:
@@ -29,7 +29,7 @@ pub fn player(session: &Session, uuid: String) -> Result {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_ => Ok(crate::response::Response::Player(
|
_ => Ok(crate::response::Response::Player(
|
||||||
crate::response::PlayerResponse::NonSaturnPlayer,
|
crate::response::PlayerResponse::NonSaturnPlayer(uuid),
|
||||||
)),
|
)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -9,7 +9,7 @@ pub enum PlayerResponse {
|
|||||||
hats: Vec<String>,
|
hats: Vec<String>,
|
||||||
hat: String,
|
hat: String,
|
||||||
},
|
},
|
||||||
NonSaturnPlayer,
|
NonSaturnPlayer(String),
|
||||||
}
|
}
|
||||||
impl std::fmt::Display for PlayerResponse {
|
impl std::fmt::Display for PlayerResponse {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
@@ -26,7 +26,7 @@ impl std::fmt::Display for PlayerResponse {
|
|||||||
cloaks.join("$"),
|
cloaks.join("$"),
|
||||||
hats.join("$"),
|
hats.join("$"),
|
||||||
),
|
),
|
||||||
PlayerResponse::NonSaturnPlayer => write!(f, "@saturn=false"),
|
PlayerResponse::NonSaturnPlayer(uuid) => write!(f, "@saturn=false@uuid={uuid}"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user