From 77d56b6167697ff85c759a6fe0a0888733ad3e83 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 7 Dec 2020 21:52:58 +1100 Subject: [PATCH] worldwalker: added destination message toggle --- iworldwalker/iworldwalker.gradle.kts | 2 +- .../plugins/iworldwalker/iWorldWalkerConfig.java | 11 +++++++++++ .../plugins/iworldwalker/iWorldWalkerPlugin.java | 6 ++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/iworldwalker/iworldwalker.gradle.kts b/iworldwalker/iworldwalker.gradle.kts index 3a60a011..c60b8547 100644 --- a/iworldwalker/iworldwalker.gradle.kts +++ b/iworldwalker/iworldwalker.gradle.kts @@ -23,7 +23,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -version = "2.5.0" +version = "2.5.1" project.extra["PluginName"] = "iWorld Walker Plugin" project.extra["PluginDescription"] = "Illumine - World Walker plugin" diff --git a/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerConfig.java b/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerConfig.java index 1e939fb8..c1a91780 100644 --- a/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerConfig.java +++ b/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerConfig.java @@ -573,6 +573,17 @@ public interface iWorldWalkerConfig extends Config return false; } + @ConfigItem( + keyName = "sendMsg", + name = "Send message on destination", + description = "Enables or Disables the message when you arrive at your destination", + position = 145 + ) + default boolean sendMsg() + { + return true; + } + @ConfigItem( keyName = "enableUI", name = "Enable UI", diff --git a/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerPlugin.java b/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerPlugin.java index 68063aac..85a138fc 100644 --- a/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerPlugin.java +++ b/iworldwalker/src/main/java/net/runelite/client/plugins/iworldwalker/iWorldWalkerPlugin.java @@ -378,8 +378,10 @@ public class iWorldWalkerPlugin extends Plugin { if (mapPoint != null) { - utils.sendGameMessage("Arrived at Map destination: " + mapPoint.getX() + ", " + - mapPoint.getY() + ", " + mapPoint.getPlane() + " - stopping World Walker"); + if (config.sendMsg()) { + utils.sendGameMessage("Arrived at Map destination: " + mapPoint.getX() + ", " + + mapPoint.getY() + ", " + mapPoint.getPlane() + " - stopping World Walker"); + } resetVals(); return; }