aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/SkillsCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-09-02 22:45:50 -0400
committerbowser0000 <bowser0000@gmail.com>2021-09-02 22:45:50 -0400
commit39741480a6321e49dd36f72b41d99478efe88184 (patch)
tree14b6eaa348c1347bd58309aad74b2d8f2bcb2505 /src/main/java/me/Danker/commands/SkillsCommand.java
parentaa78d52025faa74568ccdb3d299c0eb51f29aa90 (diff)
downloadSkyblockMod-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.java1
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