Force # command prefix
This commit is contained in:
parent
c8de4a4e00
commit
93de55318f
@ -55,9 +55,10 @@ public class ExampleBaritoneControl extends Behavior {
|
||||
return;
|
||||
}
|
||||
String msg = event.getMessage();
|
||||
if (msg.startsWith("/")) {
|
||||
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