diff --git a/src/commands/minecraft.rs b/src/commands/minecraft.rs index 5c7772e..83bb1e4 100644 --- a/src/commands/minecraft.rs +++ b/src/commands/minecraft.rs @@ -328,7 +328,7 @@ pub(crate) mod server { ID: {id} Online: {online} Info: {description} - Link: + Link: "#, name = &x.attributes.name, online = !x.attributes.is_suspended, diff --git a/src/lib.rs b/src/lib.rs index b5a0a4e..b32722b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -774,7 +774,8 @@ struct BodyDelete { } pub async fn whitelist_update(add: &Vec<(String, bool)>, server: &str, token: &str) { - let url_base = format!("http://panel.games.skynet.ie/api/client/servers/{server}"); + println!("Update whitelist for {}", server); + let url_base = format!("https://panel.games.skynet.ie/api/client/servers/{server}"); let bearer = format!("Bearer {token}"); for (name, java) in add { @@ -792,7 +793,8 @@ pub async fn whitelist_update(add: &Vec<(String, bool)>, server: &str, token: &s } pub async fn whitelist_wipe(server: &str, token: &str) { - let url_base = format!("http://panel.games.skynet.ie/api/client/servers/{server}"); + println!("Wiping whitelist for {}", server); + let url_base = format!("https://panel.games.skynet.ie/api/client/servers/{server}"); let bearer = format!("Bearer {token}"); // delete whitelist @@ -813,7 +815,8 @@ pub async fn whitelist_wipe(server: &str, token: &str) { } pub async fn server_information(server: &str, token: &str) -> Option { - let url_base = format!("http://panel.games.skynet.ie/api/client/servers/{server}"); + println!("Get server information for {}", server); + let url_base = format!("https://panel.games.skynet.ie/api/client/servers/{server}"); let bearer = format!("Bearer {token}"); get::(&format!("{url_base}/"), &bearer).await }