Skip to content

Commit

Permalink
added space between player names
Browse files Browse the repository at this point in the history
  • Loading branch information
9FS committed Sep 2, 2024
1 parent 2036510 commit 8239f18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/rich_presence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 8239f18

Please sign in to comment.