From 232fd73247a9f74104929c3bf1cdfe77bab24aed Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Sun, 26 Aug 2018 18:07:08 +0200 Subject: [PATCH] Fix setting of barrows kc from chat Signed-off-by: Tomas Slusny --- .../client/plugins/chatcommands/ChatCommandsPlugin.java | 2 +- .../client/plugins/chatcommands/ChatCommandsPluginTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java index a8f70861cf..dbda9198c6 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/chatcommands/ChatCommandsPlugin.java @@ -275,7 +275,7 @@ public class ChatCommandsPlugin extends Plugin implements ChatboxInputListener { int kc = Integer.parseInt(matcher.group(1)); - setKc("Barrows", kc); + setKc("Barrows Chests", kc); } } diff --git a/runelite-client/src/test/java/net/runelite/client/plugins/chatcommands/ChatCommandsPluginTest.java b/runelite-client/src/test/java/net/runelite/client/plugins/chatcommands/ChatCommandsPluginTest.java index 7c33d1a20b..858f72ac8d 100644 --- a/runelite-client/src/test/java/net/runelite/client/plugins/chatcommands/ChatCommandsPluginTest.java +++ b/runelite-client/src/test/java/net/runelite/client/plugins/chatcommands/ChatCommandsPluginTest.java @@ -126,6 +126,6 @@ public class ChatCommandsPluginTest ChatMessage chatMessageEvent = new ChatMessage(SERVER, "", "Your Barrows chest count is: 277.", null); chatCommandsPlugin.onChatMessage(chatMessageEvent); - verify(configManager).setConfiguration("killcount.adam", "barrows", 277); + verify(configManager).setConfiguration("killcount.adam", "barrows chests", 277); } } \ No newline at end of file