Minor changes
This commit is contained in:
parent
6447bc0bb6
commit
54b48e3f2a
@ -270,7 +270,7 @@ pub async fn process_command(
|
|||||||
for (player, position_time_data) in player_locations {
|
for (player, position_time_data) in player_locations {
|
||||||
if player.username == segments[0] || player.uuid.to_string() == segments[0] {
|
if player.username == segments[0] || player.uuid.to_string() == segments[0] {
|
||||||
return format!(
|
return format!(
|
||||||
"{} was last seen at {}, {}, {} ({})",
|
"{} was last seen at {} {} {} ({})",
|
||||||
segments[0],
|
segments[0],
|
||||||
position_time_data.position[0],
|
position_time_data.position[0],
|
||||||
position_time_data.position[1],
|
position_time_data.position[1],
|
||||||
@ -376,7 +376,7 @@ pub async fn process_command(
|
|||||||
|
|
||||||
let mut found = true;
|
let mut found = true;
|
||||||
let player_locations = state.player_locations.lock().unwrap().to_owned();
|
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] {
|
if player.username == segments[0] || player.uuid.to_string() == segments[0] {
|
||||||
found = true;
|
found = true;
|
||||||
*state.followed_player.lock().unwrap() = Some(player.to_owned());
|
*state.followed_player.lock().unwrap() = Some(player.to_owned());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user