Language changes

This commit is contained in:
ErrorNoInternet 2023-01-17 17:14:15 +08:00
parent e1b4f34cef
commit 60674d7127
Signed by untrusted user who does not match committer: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -178,7 +178,7 @@ pub async fn process_command(
} }
Command::WhitelistAdd => { Command::WhitelistAdd => {
if segments.len() < 1 { if segments.len() < 1 {
return "Please tell me the name of the player!".to_string(); return "Please tell me the name of a player!".to_string();
} }
let mut whitelist = state.whitelist.lock().unwrap().to_vec(); let mut whitelist = state.whitelist.lock().unwrap().to_vec();
@ -194,7 +194,7 @@ pub async fn process_command(
} }
Command::WhitelistRemove => { Command::WhitelistRemove => {
if segments.len() < 1 { if segments.len() < 1 {
return "Please tell me the name of the player!".to_string(); return "Please tell me the name of a player!".to_string();
} }
let mut whitelist = state.whitelist.lock().unwrap().to_vec(); let mut whitelist = state.whitelist.lock().unwrap().to_vec();
@ -215,7 +215,7 @@ pub async fn process_command(
} }
Command::LastLocation => { Command::LastLocation => {
if segments.len() < 1 { if segments.len() < 1 {
return "Please tell me the name of the player!".to_string(); return "Please tell me the name of a player!".to_string();
} }
for (player, position_time_data) in state.player_locations.lock().unwrap().iter() { for (player, position_time_data) in state.player_locations.lock().unwrap().iter() {
@ -237,7 +237,7 @@ pub async fn process_command(
} }
Command::LastOnline => { Command::LastOnline => {
if segments.len() < 1 { if segments.len() < 1 {
return "Please tell me the name of the player!".to_string(); return "Please tell me a page number or the name of a player!".to_string();
} }
if segments[0].parse::<usize>().is_ok() { if segments[0].parse::<usize>().is_ok() {
@ -322,7 +322,7 @@ pub async fn process_command(
} }
Command::FollowPlayer => { Command::FollowPlayer => {
if segments.len() < 1 { if segments.len() < 1 {
return "Please tell me the name of the player!".to_string(); return "Please tell me the name of a player!".to_string();
}; };
let mut found = true; let mut found = true;