Fix setting of barrows kc from chat

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-08-26 18:07:08 +02:00
parent 997e141a86
commit 232fd73247
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}
}

View File

@@ -126,6 +126,6 @@ public class ChatCommandsPluginTest
ChatMessage chatMessageEvent = new ChatMessage(SERVER, "", "Your Barrows chest count is: <col=ff0000>277</col>.", null);
chatCommandsPlugin.onChatMessage(chatMessageEvent);
verify(configManager).setConfiguration("killcount.adam", "barrows", 277);
verify(configManager).setConfiguration("killcount.adam", "barrows chests", 277);
}
}