diff --git a/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java b/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java index a6e035e..49c1397 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java +++ b/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java @@ -219,9 +219,11 @@ public class CommandCore extends SessionAdapter { currentBlockRelative = null; ready = false; - refillTimer.cancel(); - refillTimer.purge(); - refillTimer = null; + if (refillTimer != null) { + refillTimer.cancel(); + refillTimer.purge(); + refillTimer = null; + } } public static class Listener {