fix clue kc matching (#1274)
This commit is contained in:
@@ -128,7 +128,7 @@ import org.apache.commons.lang3.ArrayUtils;
|
|||||||
public class LootTrackerPlugin extends Plugin
|
public class LootTrackerPlugin extends Plugin
|
||||||
{
|
{
|
||||||
// Activity/Event loot handling
|
// Activity/Event loot handling
|
||||||
private static final Pattern CLUE_SCROLL_PATTERN = Pattern.compile("You have completed [0-9]+ ([a-z]+) Treasure Trails.");
|
private static final Pattern CLUE_SCROLL_PATTERN = Pattern.compile("You have completed ([0-9]+) ([a-z]+) Treasure Trails.");
|
||||||
private static final int THEATRE_OF_BLOOD_REGION = 12867;
|
private static final int THEATRE_OF_BLOOD_REGION = 12867;
|
||||||
|
|
||||||
private static final Pattern BOSS_NAME_NUMBER_PATTERN = Pattern.compile("Your (.*) kill count is: ([0-9]*).");
|
private static final Pattern BOSS_NAME_NUMBER_PATTERN = Pattern.compile("Your (.*) kill count is: ([0-9]*).");
|
||||||
@@ -757,7 +757,7 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
final Matcher m = CLUE_SCROLL_PATTERN.matcher(chatMessage);
|
final Matcher m = CLUE_SCROLL_PATTERN.matcher(chatMessage);
|
||||||
if (m.find())
|
if (m.find())
|
||||||
{
|
{
|
||||||
final String type = m.group(1).toLowerCase();
|
final String type = m.group(2).toLowerCase();
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case "beginner":
|
case "beginner":
|
||||||
|
|||||||
Reference in New Issue
Block a user