fix clue kc matching (#1274)

This commit is contained in:
Harry
2019-08-06 13:36:39 +01:00
committed by Kyleeld
parent cc98688465
commit 31bad19dd7

View File

@@ -128,7 +128,7 @@ import org.apache.commons.lang3.ArrayUtils;
public class LootTrackerPlugin extends Plugin
{
// 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 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);
if (m.find())
{
final String type = m.group(1).toLowerCase();
final String type = m.group(2).toLowerCase();
switch (type)
{
case "beginner":