mirror of
https://git.funtimes909.xyz/ServerSeekerV2/ServerSeekerV2.git
synced 2026-10-12 02:18:11 +08:00
Add MOTD parsing
This commit is contained in:
1 parent
20f9247a5a
commit
173445d6d1
1 file changed
+14
-7
+14
-7
@@ -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)]
|
||||
|
||||
Reference in new issue
Block a user