cancel chat event

This commit is contained in:
Leijurv 2018-10-16 11:13:08 -07:00
parent 0cd9bb658f
commit 46a24af373
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -72,7 +72,9 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
} }
msg = msg.substring(1); msg = msg.substring(1);
} }
runCommand(msg); if (runCommand(msg)) {
event.cancel();
}
} }
public boolean runCommand(String msg) { public boolean runCommand(String msg) {