diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index 52b142af..c79ccab9 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -55,10 +55,12 @@ public class ExampleBaritoneControl extends Behavior { return; } String msg = event.getMessage(); - if (Baritone.settings().prefix.get() && !msg.startsWith("#")) - return; - - msg = msg.substring(1); + if (Baritone.settings().prefix.get()) { + if (!msg.startsWith("#")) { + return; + } + msg = msg.substring(1); + } if (msg.toLowerCase().startsWith("goal")) { event.cancel(); String[] params = msg.toLowerCase().substring(4).trim().split(" ");