Add MOTD parsing

This commit is contained in:
funtimes909 committed 2025-04-18 12:55:51 +12:00
1 parent 20f9247a5a
commit 173445d6d1
1 file changed
+14 -7
+14 -7
View File
@@ -36,8 +36,16 @@ pub struct Server {
#[allow(dead_code)]
#[derive(Debug, Deserialize)]
pub struct ForgeData {
pub mods: Vec<Mod>,
pub struct Version {
pub name: String,
pub protocol: i32,
}
#[allow(dead_code)]
#[derive(Debug, Deserialize)]
pub enum Description {
Plain(String),
Object { text: String },
}
#[allow(dead_code)]
@@ -50,16 +58,15 @@ pub struct Players {
#[allow(dead_code)]
#[derive(Debug, Deserialize)]
pub struct Version {
pub struct Player {
pub id: String,
pub name: String,
pub protocol: i32,
}
#[allow(dead_code)]
#[derive(Debug, Deserialize)]
pub struct Player {
pub id: String,
pub name: String,
pub struct ForgeData {
pub mods: Vec<Mod>,
}
#[allow(dead_code)]