diff options
author | bowser0000 <bowser0000@gmail.com> | 2021-09-02 22:45:50 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2021-09-02 22:45:50 -0400 |
commit | 39741480a6321e49dd36f72b41d99478efe88184 (patch) | |
tree | 14b6eaa348c1347bd58309aad74b2d8f2bcb2505 /src/main/java/me/Danker/commands/SkillsCommand.java | |
parent | aa78d52025faa74568ccdb3d299c0eb51f29aa90 (diff) | |
download | SkyblockMod-39741480a6321e49dd36f72b41d99478efe88184.tar.gz SkyblockMod-39741480a6321e49dd36f72b41d99478efe88184.tar.bz2 SkyblockMod-39741480a6321e49dd36f72b41d99478efe88184.zip |
Add /inventory command
Also add returns on API commands when API key is not set
Diffstat (limited to 'src/main/java/me/Danker/commands/SkillsCommand.java')
-rw-r--r-- | src/main/java/me/Danker/commands/SkillsCommand.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/commands/SkillsCommand.java b/src/main/java/me/Danker/commands/SkillsCommand.java index 533c804..f17c79d 100644 --- a/src/main/java/me/Danker/commands/SkillsCommand.java +++ b/src/main/java/me/Danker/commands/SkillsCommand.java @@ -54,6 +54,7 @@ public class SkillsCommand extends CommandBase { String key = ConfigHandler.getString("api", "APIKey"); if (key.equals("")) { player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "API key not set. Use /setkey.")); + return; } // Get UUID for Hypixel API requests |