diff options
author | Cow <cow@volloeko.de> | 2020-09-24 17:58:17 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-09-24 17:58:17 +0200 |
commit | 7d4f2b900254d961b847f573237e3e6f40bff8e9 (patch) | |
tree | 8fa85fc9212ffc9b8a16796c682d87667ec294a5 /src/main/java/de/cowtipper/cowlection/command/exception/ApiContactException.java | |
parent | 705299e37d27d421156a09213e0654d0ab4fb01c (diff) | |
download | Cowlection-7d4f2b900254d961b847f573237e3e6f40bff8e9.tar.gz Cowlection-7d4f2b900254d961b847f573237e3e6f40bff8e9.tar.bz2 Cowlection-7d4f2b900254d961b847f573237e3e6f40bff8e9.zip |
Config (gui) rework
- Completely re-done the config gui (`/moo config`)
- Improved SkyBlock dungeon party finder
- Improved SkyBlock dungeon performance overlay
- Improved handling of invalid/missing Hypixel API key
- minor text fixes
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/command/exception/ApiContactException.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/command/exception/ApiContactException.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/command/exception/ApiContactException.java b/src/main/java/de/cowtipper/cowlection/command/exception/ApiContactException.java index 09a04a0..f601e3e 100644 --- a/src/main/java/de/cowtipper/cowlection/command/exception/ApiContactException.java +++ b/src/main/java/de/cowtipper/cowlection/command/exception/ApiContactException.java @@ -1,7 +1,12 @@ package de.cowtipper.cowlection.command.exception; +import de.cowtipper.cowlection.Cowlection; + public class ApiContactException extends MooCommandException { public ApiContactException(String api, String failedAction) { super("Sorry, couldn't contact the " + api + " API and thus " + failedAction); + if (api.equals("Hypixel") && failedAction.contains("Invalid API key")) { + Cowlection.getInstance().getMoo().setMooValidity(false); + } } } |