report if server enforces secure chat
This commit is contained in:
parent
694c2f07d8
commit
d7c4fac34c
1 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ struct MinecraftStatusResponse<'a> {
|
||||||
version: &'a String,
|
version: &'a String,
|
||||||
players: u32,
|
players: u32,
|
||||||
max_players: u32,
|
max_players: u32,
|
||||||
|
enforces_secure_chat: bool,
|
||||||
motd: String,
|
motd: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -125,6 +126,7 @@ env!("CARGO_PKG_VERSION"));
|
||||||
version: &status.version.name,
|
version: &status.version.name,
|
||||||
players: status.players.online,
|
players: status.players.online,
|
||||||
max_players: status.players.max,
|
max_players: status.players.max,
|
||||||
|
enforces_secure_chat: status.enforces_secure_chat(),
|
||||||
motd: status.parse_description(),
|
motd: status.parse_description(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -134,12 +136,14 @@ env!("CARGO_PKG_VERSION"));
|
||||||
<p>
|
<p>
|
||||||
<strong>Version:</strong> <code>{}</code><br/>
|
<strong>Version:</strong> <code>{}</code><br/>
|
||||||
<strong>Players:</strong> <code>{}/{}</code><br/>
|
<strong>Players:</strong> <code>{}/{}</code><br/>
|
||||||
|
<strong>Enforces Secure Chat:</strong> <code>{}</code></br>
|
||||||
<strong>MOTD:</strong>
|
<strong>MOTD:</strong>
|
||||||
</p>
|
</p>
|
||||||
<pre id=\"motd\"><code>{}</code></pre>",
|
<pre id=\"motd\"><code>{}</code></pre>",
|
||||||
sanitize_html(minecraft_status.version).to_string(),
|
sanitize_html(minecraft_status.version).to_string(),
|
||||||
minecraft_status.players,
|
minecraft_status.players,
|
||||||
minecraft_status.max_players,
|
minecraft_status.max_players,
|
||||||
|
if minecraft_status.enforces_secure_chat { "true" } else { "false" },
|
||||||
sanitize_html(&minecraft_status.motd).to_string(),
|
sanitize_html(&minecraft_status.motd).to_string(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -189,6 +193,7 @@ env!("CARGO_PKG_VERSION"));
|
||||||
version: &status.version.name,
|
version: &status.version.name,
|
||||||
players: status.players.online,
|
players: status.players.online,
|
||||||
max_players: status.players.max,
|
max_players: status.players.max,
|
||||||
|
enforces_secure_chat: status.enforces_secure_chat(),
|
||||||
motd: status.parse_description(),
|
motd: status.parse_description(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue