Fix setting of barrows kc from chat
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user