chat commands: add herbiboar kc
This commit is contained in:
@@ -81,7 +81,7 @@ import org.apache.commons.text.WordUtils;
|
|||||||
public class ChatCommandsPlugin extends Plugin
|
public class ChatCommandsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
private static final float HIGH_ALCHEMY_CONSTANT = 0.6f;
|
private static final float HIGH_ALCHEMY_CONSTANT = 0.6f;
|
||||||
private static final Pattern KILLCOUNT_PATTERN = Pattern.compile("Your (.+) kill count is: <col=ff0000>(\\d+)</col>");
|
private static final Pattern KILLCOUNT_PATTERN = Pattern.compile("Your (.+) (?:kill|harvest) count is: <col=ff0000>(\\d+)</col>");
|
||||||
private static final Pattern RAIDS_PATTERN = Pattern.compile("Your completed (.+) count is: <col=ff0000>(\\d+)</col>");
|
private static final Pattern RAIDS_PATTERN = Pattern.compile("Your completed (.+) count is: <col=ff0000>(\\d+)</col>");
|
||||||
private static final Pattern WINTERTODT_PATTERN = Pattern.compile("Your subdued Wintertodt count is: <col=ff0000>(\\d+)</col>");
|
private static final Pattern WINTERTODT_PATTERN = Pattern.compile("Your subdued Wintertodt count is: <col=ff0000>(\\d+)</col>");
|
||||||
private static final Pattern BARROWS_PATTERN = Pattern.compile("Your Barrows chest count is: <col=ff0000>(\\d+)</col>");
|
private static final Pattern BARROWS_PATTERN = Pattern.compile("Your Barrows chest count is: <col=ff0000>(\\d+)</col>");
|
||||||
@@ -1108,6 +1108,8 @@ public class ChatCommandsPlugin extends Plugin
|
|||||||
return "Wintertodt";
|
return "Wintertodt";
|
||||||
case "barrows":
|
case "barrows":
|
||||||
return "Barrows Chests";
|
return "Barrows Chests";
|
||||||
|
case "herbi":
|
||||||
|
return "Herbiboar";
|
||||||
|
|
||||||
// cox
|
// cox
|
||||||
case "cox":
|
case "cox":
|
||||||
|
|||||||
@@ -130,6 +130,17 @@ public class ChatCommandsPluginTest
|
|||||||
verify(configManager).setConfiguration("killcount.adam", "barrows chests", 277);
|
verify(configManager).setConfiguration("killcount.adam", "barrows chests", 277);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testHerbiboar()
|
||||||
|
{
|
||||||
|
when(client.getUsername()).thenReturn("Adam");
|
||||||
|
|
||||||
|
ChatMessage chatMessageEvent = new ChatMessage(null, SERVER, "", "Your herbiboar harvest count is: <col=ff0000>4091</col>.", null, 0);
|
||||||
|
chatCommandsPlugin.onChatMessage(chatMessageEvent);
|
||||||
|
|
||||||
|
verify(configManager).setConfiguration("killcount.adam", "herbiboar", 4091);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testPersonalBest()
|
public void testPersonalBest()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user