diff options
-rw-r--r-- | build.gradle | 2 | ||||
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/b.java | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle index 39abefbe..f51bae14 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ plugins { */ version = "1.0" group= "kr.syeyoung.dungeonsguide" // http://maven.apache.org/guides/mini/guide-naming-conventions.html -archivesBaseName = "z" +archivesBaseName = "dungeonsguide" minecraft { version = "1.8.9-11.15.1.1722" diff --git a/src/main/java/kr/syeyoung/dungeonsguide/b.java b/src/main/java/kr/syeyoung/dungeonsguide/b.java index e786834e..d0422526 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/b.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/b.java @@ -43,7 +43,6 @@ public class b { a(); } - private static final String DOMAIN = "http://localhost:8080/"; public String b() throws IOException, AuthenticationException, NoSuchAlgorithmException, IllegalBlockSizeException, InvalidKeyException, BadPaddingException, InvalidAlgorithmParameterException, NoSuchPaddingException { Session a = Minecraft.getMinecraft().getSession(); @@ -67,7 +66,7 @@ public class b { } private String a(GameProfile d) throws IOException { - HttpURLConnection a = (HttpURLConnection) new URL(DOMAIN+"auth/requestAuth").openConnection(); + HttpURLConnection a = (HttpURLConnection) new URL("https://dungeonsguide.kro.kr/auth/requestAuth").openConnection(); a.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); a.setRequestProperty("Content-Type", "application/json"); a.setRequestMethod("POST"); @@ -83,7 +82,7 @@ public class b { return c.get("data").getAsString(); } private String a(String a, PublicKey b) throws IOException { - HttpURLConnection c = (HttpURLConnection) new URL(DOMAIN+"auth/authenticate").openConnection(); + HttpURLConnection c = (HttpURLConnection) new URL("https://dungeonsguide.kro.kr/auth/authenticate").openConnection(); c.setRequestMethod("POST"); c.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); c.setRequestProperty("Content-Type", "application/json"); @@ -106,7 +105,7 @@ public class b { } private void b(String a) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, InvalidAlgorithmParameterException { - HttpURLConnection b = (HttpURLConnection) new URL(DOMAIN + "resource/jar").openConnection(); + HttpURLConnection b = (HttpURLConnection) new URL("https://dungeonsguide.kro.kr/resource/jar").openConnection(); b.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); b.setRequestProperty("Content-Type", "application/json"); b.setRequestMethod("GET"); |