diff options
Diffstat (limited to 'src/main/java/net/uomc/mineshaft/FishCommand.java')
| -rw-r--r-- | src/main/java/net/uomc/mineshaft/FishCommand.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/uomc/mineshaft/FishCommand.java b/src/main/java/net/uomc/mineshaft/FishCommand.java index 2eac218..37612ca 100644 --- a/src/main/java/net/uomc/mineshaft/FishCommand.java +++ b/src/main/java/net/uomc/mineshaft/FishCommand.java @@ -50,6 +50,11 @@ public class FishCommand extends CooldownCommand { @Override public boolean trigger(MessageReceivedEvent e) { + if (bot.getPickaxes().isNether(e.getMember())) { + bot.sendErrorMessage(e, ":x: You cannot fish in the nether"); + return false; + } + e.getMessage().addReaction(Emoji.fromUnicode(EmojiParser.parseToUnicode(REACTION_FISH))).queue(); long waitTime = MIN_WAIT_MS + (long) (Math.random() * (MAX_WAIT_MS - MIN_WAIT_MS)); |
