Fix heartbeat url
This commit is contained in:
parent
15e2685040
commit
d78e9d23a1
2 changed files with 2 additions and 2 deletions
|
@ -1182,7 +1182,7 @@ public final class Minecraft implements Runnable {
|
|||
HTTPResponse response = null;
|
||||
try {
|
||||
response = HTTPRequestBuilder.builder()
|
||||
.withURL("https://api.zontreck.com/zni/yggdrasil/legacy/server.php")
|
||||
.withURL("https://api.zontreck.com/crafting/yggdrasil/legacy/server.php")
|
||||
.withContentType("application/x-www-form-urlencoded")
|
||||
.withMethod(HTTPMethod.POST)
|
||||
.withBody("id=" + serverArg.getValue())
|
||||
|
|
|
@ -192,7 +192,7 @@ public class MinecraftServer implements Runnable {
|
|||
}else {
|
||||
|
||||
try {
|
||||
URL server = new URL("https://api.zontreck.com/zni/yggdrasil/legacy/heartbeat.php");
|
||||
URL server = new URL("https://api.zontreck.com/crafting/yggdrasil/legacy/heartbeat.php");
|
||||
HttpURLConnection conn = (HttpURLConnection)server.openConnection();
|
||||
conn.setRequestMethod("POST");
|
||||
conn.setDoOutput(true);
|
||||
|
|
Loading…
Reference in a new issue