diff options
Diffstat (limited to 'src/main/java/net/uomc/mineshaft/FishCommand.java')
| -rw-r--r-- | src/main/java/net/uomc/mineshaft/FishCommand.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/uomc/mineshaft/FishCommand.java b/src/main/java/net/uomc/mineshaft/FishCommand.java index 37612ca..484e49b 100644 --- a/src/main/java/net/uomc/mineshaft/FishCommand.java +++ b/src/main/java/net/uomc/mineshaft/FishCommand.java @@ -37,6 +37,8 @@ public class FishCommand extends CooldownCommand { private static final String TITLE = "Fishing"; private static final String IMAGE_ROD = "https://minecraft.wiki/images/Fishing_Rod_JE2_BE2.png"; + private static final String FISHED_STAT = "times_fished"; + private Mineshaft bot; protected FishCommand(Mineshaft bot) { @@ -50,7 +52,7 @@ public class FishCommand extends CooldownCommand { @Override public boolean trigger(MessageReceivedEvent e) { - if (bot.getPickaxes().isNether(e.getMember())) { + if (bot.getPlayerStats().isNether(e.getMember())) { bot.sendErrorMessage(e, ":x: You cannot fish in the nether"); return false; } |
