Minor changes

This commit is contained in:
ErrorNoInternet 2023-01-26 17:22:44 +08:00
parent 6447bc0bb6
commit 54b48e3f2a
Signed by untrusted user who does not match committer: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -270,7 +270,7 @@ pub async fn process_command(
for (player, position_time_data) in player_locations {
if player.username == segments[0] || player.uuid.to_string() == segments[0] {
return format!(
"{} was last seen at {}, {}, {} ({})",
"{} was last seen at {} {} {} ({})",
segments[0],
position_time_data.position[0],
position_time_data.position[1],
@ -376,7 +376,7 @@ pub async fn process_command(
let mut found = true;
let player_locations = state.player_locations.lock().unwrap().to_owned();
for (player, _position_time_data) in player_locations {
for (player, _) in player_locations {
if player.username == segments[0] || player.uuid.to_string() == segments[0] {
found = true;
*state.followed_player.lock().unwrap() = Some(player.to_owned());