aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-05-04 12:56:06 +0900
committersyeyoung <cyong06@naver.com>2021-05-04 12:56:06 +0900
commitcaf765b632ce859861bce5e2018a31a93ce7695c (patch)
tree781fec817460d503caf2baca10ada5d9d0fd1c6c
parenta7931f2650fc4acde0dfb5a573730ae8d3a98691 (diff)
downloadSkyblock-Dungeons-Guide-caf765b632ce859861bce5e2018a31a93ce7695c.tar.gz
Skyblock-Dungeons-Guide-caf765b632ce859861bce5e2018a31a93ce7695c.tar.bz2
Skyblock-Dungeons-Guide-caf765b632ce859861bce5e2018a31a93ce7695c.zip
move domain
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/party/PartyInviteViewer.java2
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/utils/AhUtils.java20
2 files changed, 3 insertions, 19 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyInviteViewer.java b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyInviteViewer.java
index c2652b33..61d53687 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyInviteViewer.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyInviteViewer.java
@@ -152,7 +152,7 @@ public class PartyInviteViewer {
try {
URL urlObj = new URL(url);
HttpURLConnection huc = (HttpURLConnection) urlObj.openConnection();
- huc.addRequestProperty("User-Agent", "DungeonsGuideMod (dungeonsguide.kro.kr, 1.0)");
+ huc.addRequestProperty("User-Agent", "DungeonsGuideMod (dungeons.guide, 1.0)");
BufferedImage bufferedImage = ImageIO.read(huc.getInputStream());
LoadedImage loadedImage = new LoadedImage();
loadedImage.setImage(bufferedImage);
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/AhUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/AhUtils.java
index 4164fd4a..6bc57c2a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/utils/AhUtils.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/AhUtils.java
@@ -46,23 +46,7 @@ public class AhUtils {
public void run() {
try {
AhUtils.loadAuctions();
- } catch (CertificateException e) {
- e.printStackTrace();
- } catch (NoSuchAlgorithmException e) {
- e.printStackTrace();
- } catch (InvalidKeyException e) {
- e.printStackTrace();
- } catch (InvalidAlgorithmParameterException e) {
- e.printStackTrace();
- } catch (NoSuchPaddingException e) {
- e.printStackTrace();
- } catch (BadPaddingException e) {
- e.printStackTrace();
- } catch (KeyStoreException e) {
- e.printStackTrace();
- } catch (IllegalBlockSizeException e) {
- e.printStackTrace();
- } catch (KeyManagementException e) {
+ } catch (CertificateException | NoSuchAlgorithmException | InvalidKeyException | InvalidAlgorithmParameterException | NoSuchPaddingException | BadPaddingException | KeyStoreException | IllegalBlockSizeException | KeyManagementException e) {
e.printStackTrace();
}
}
@@ -73,7 +57,7 @@ public class AhUtils {
try {
Map<String, AuctionData> semi_auctions = new HashMap<String, AuctionData>();
- JsonElement object = e.getDungeonsGuide().getAuthenticator().d("https://dungeonsguide.kro.kr/resource/keys");
+ JsonElement object = e.getDungeonsGuide().getAuthenticator().d("https://dungeons.guide/resource/keys");
for (JsonElement element : object.getAsJsonArray()) {
JsonObject object1 = element.getAsJsonObject();
AuctionData auctionData = new AuctionData(object1.get("id").getAsString());