diff --git a/Cargo.lock b/Cargo.lock index e17f257..a33a57f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -690,7 +690,7 @@ dependencies = [ [[package]] name = "minecraft_server_status" -version = "3.0.1" +version = "3.0.2" dependencies = [ "async-minecraft-ping", "load_config", diff --git a/Cargo.toml b/Cargo.toml index 4732fb0..24cfafc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" name = "minecraft_server_status" readme = "readme.md" repository = "https://github.com/9-FS/minecraft_server_status" -version = "3.0.1" +version = "3.0.2" [dependencies] async-minecraft-ping = "^0.8.0" diff --git a/src/rich_presence.rs b/src/rich_presence.rs index 099df67..3f24c1c 100644 --- a/src/rich_presence.rs +++ b/src/rich_presence.rs @@ -132,7 +132,7 @@ async fn generate_rich_presence( { player_names = mc_server.status.players.sample.unwrap_or_default().iter().map(|player| player.name.clone()).collect(); // get player names player_names.sort_by_key(|player_name| player_name.to_lowercase()); // sort player names case insensitive - discord_rich_presence += format!(": {}", player_names.join(",").as_str()).as_str(); + discord_rich_presence += format!(": {}", player_names.join(", ").as_str()).as_str(); // collapse player name list into string, append to rich presence }