From f7a52a982cee26212544623c1e93a6ff62dc2922 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Wed, 29 Jan 2020 14:51:46 +0100 Subject: [PATCH] Replaced dead api --- src/main/java/ch/m4th1eu/richpresence/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/m4th1eu/richpresence/Utils.java b/src/main/java/ch/m4th1eu/richpresence/Utils.java index 9a663e6..f24042d 100644 --- a/src/main/java/ch/m4th1eu/richpresence/Utils.java +++ b/src/main/java/ch/m4th1eu/richpresence/Utils.java @@ -45,8 +45,8 @@ public class Utils { try { variable = variable.replaceAll("%player-name%", Minecraft.getMinecraft().getSession().getUsername()); - variable = variable.replaceAll("%server-connected-player%", readTextFromURL("https://minecraft-api.com/api/ping/playeronline.php?ip=" + serverip + "&port=" + serverport)); - variable = variable.replaceAll("%server-max-slot%", readTextFromURL("https://minecraft-api.com/api/ping/maxplayer.php?ip=" + serverip + "&port=" + serverport)); + variable = variable.replaceAll("%server-connected-player%", readTextFromURL("https://api.serveurs-minecraft.com/api.php?Joueurs_En_Ligne_Ping&ip=" + serverip + "&port=" + serverport)); + variable = variable.replaceAll("%server-max-slot%", readTextFromURL("https://api.serveurs-minecraft.com/api.php?Joueurs_Maximum_Ping&ip=" + serverip + "&port=" + serverport)); } catch (Exception e) { }