From 93de55318fabb58b53070cdf53079a729e3daa0a Mon Sep 17 00:00:00 2001 From: Brady Date: Thu, 23 Aug 2018 20:57:32 -0500 Subject: [PATCH] Force # command prefix --- src/main/java/baritone/utils/ExampleBaritoneControl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index fbd801f3..063c939c 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -55,9 +55,10 @@ public class ExampleBaritoneControl extends Behavior { return; } String msg = event.getMessage(); - if (msg.startsWith("/")) { - msg = msg.substring(1); - } + if (!msg.startsWith("#")) + return; + + msg = msg.substring(1); if (msg.toLowerCase().startsWith("goal")) { event.cancel(); String[] params = msg.toLowerCase().substring(4).trim().split(" ");