diff --git a/.gitignore b/.gitignore index 238058b..92178e8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,27 +2,4 @@ /.classpath /.project /CryptoMarket.iml -/.idea/compiler.xml -/.idea/discord.xml -/.idea/dictionaries/edson.xml -/.idea/jarRepositories.xml -/.idea/libraries/Maven__com_destroystokyo_paper_paper_api_1_15_2_R0_1_SNAPSHOT.xml -/.idea/libraries/Maven__com_github_MilkBowl_VaultAPI_1_7.xml -/.idea/libraries/Maven__com_google_code_findbugs_jsr305_1_3_9.xml -/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml -/.idea/libraries/Maven__com_google_guava_guava_21_0.xml -/.idea/libraries/Maven__com_googlecode_json_simple_json_simple_1_1_1.xml -/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml -/.idea/libraries/Maven__junit_junit_4_10.xml -/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_15_SNAPSHOT.xml -/.idea/libraries/Maven__org_bukkit_bukkit_1_13_1_R0_1_SNAPSHOT.xml -/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml -/.idea/libraries/Maven__org_ow2_asm_asm_8_0_1.xml -/.idea/libraries/Maven__org_ow2_asm_asm_analysis_8_0_1.xml -/.idea/libraries/Maven__org_ow2_asm_asm_commons_8_0_1.xml -/.idea/libraries/Maven__org_ow2_asm_asm_tree_8_0_1.xml -/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml -/.idea/libraries/Maven__org_yaml_snakeyaml_1_25.xml -/.idea/misc.xml -/.idea/modules.xml -/.idea/vcs.xml +/.idea/ \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2ec8012..5cfd0ab 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.epconsortium CryptoMarket - 2.1.0 + 2.1.1 CryptoMarket A plugin that brings the cryptocoins market experience to your server! https://www.spigotmc.org/resources/cryptomarket.69031/ @@ -32,6 +32,7 @@ maven-shade-plugin 3.1.0 + false com.google.gson diff --git a/src/main/java/net/epconsortium/cryptomarket/finances/ExchangeRates.java b/src/main/java/net/epconsortium/cryptomarket/finances/ExchangeRates.java index dd19e9a..f56a4a4 100644 --- a/src/main/java/net/epconsortium/cryptomarket/finances/ExchangeRates.java +++ b/src/main/java/net/epconsortium/cryptomarket/finances/ExchangeRates.java @@ -249,9 +249,7 @@ private void updateDailyRates0() { JsonObject jo = json.getAsJsonObject("Time Series (Digital Currency Daily)"); if (jo == null) { plugin.getLogger().warning("API limit exceeded. Wait a few minutes and try again."); - if (json.has("Note")) { - CryptoMarket.debug(json.get("Note").getAsString()); - } + CryptoMarket.debug(json.toString()); errors.put(coin, true); continue; } @@ -297,9 +295,7 @@ private void updateCurrentExchangeRate0() { JsonElement realtimeCurrencyExchangeRate = json.get("Realtime Currency Exchange Rate"); if (realtimeCurrencyExchangeRate == null) { plugin.getLogger().warning("API limit exceeded. Wait a few minutes and try again."); - if (json.has("Note")) { - CryptoMarket.debug(json.get("Note").getAsString()); - } + CryptoMarket.debug(json.toString()); error = true; continue; }