From e8b108fde81c077bfb8a96199c3322804c46773c Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 2 Sep 2018 12:06:00 -0700 Subject: [PATCH] removePrefix --- src/main/java/baritone/Settings.java | 5 +++++ src/main/java/baritone/utils/ExampleBaritoneControl.java | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/Settings.java b/src/main/java/baritone/Settings.java index 7f386bcb..d7d23c59 100644 --- a/src/main/java/baritone/Settings.java +++ b/src/main/java/baritone/Settings.java @@ -218,6 +218,11 @@ public class Settings { */ public Setting chatControl = new Setting<>(true); + /** + * A second override over chatControl to force it on + */ + public Setting removePrefix = new Setting<>(false); + /** * Render the path */ diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index 854950da..75a36994 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -57,7 +57,9 @@ public class ExampleBaritoneControl extends Behavior { @Override public void onSendChatMessage(ChatEvent event) { if (!Baritone.settings().chatControl.get()) { - return; + if (!Baritone.settings().removePrefix.get()) { + return; + } } String msg = event.getMessage(); if (Baritone.settings().prefix.get()) {