fixed prefix logic
This commit is contained in:
parent
6631f9c80f
commit
37d4e7b178
@ -55,10 +55,12 @@ public class ExampleBaritoneControl extends Behavior {
|
||||
return;
|
||||
}
|
||||
String msg = event.getMessage();
|
||||
if (Baritone.settings().prefix.get() && !msg.startsWith("#"))
|
||||
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(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user