Merge pull request #5141 from deathbeam/fix-barrows-kc

Fix setting of barrows kc from chat
This commit is contained in:
Tomas Slusny
2018-08-26 19:39:13 +02:00
committed by GitHub
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);
}
}