chat commands: add gotr kc
This commit is contained in:
@@ -123,6 +123,7 @@ public class ChatCommandsPlugin extends Plugin
|
||||
private static final Pattern HS_KC_FLOOR_PATTERN = Pattern.compile("You have completed Floor (\\d) of the Hallowed Sepulchre! Total completions: <col=ff0000>([0-9,]+)</col>\\.");
|
||||
private static final Pattern HS_KC_GHC_PATTERN = Pattern.compile("You have opened the Grand Hallowed Coffin <col=ff0000>([0-9,]+)</col> times?!");
|
||||
private static final Pattern COLLECTION_LOG_ITEM_PATTERN = Pattern.compile("New item added to your collection log: (.*)");
|
||||
private static final Pattern GUARDIANS_OF_THE_RIFT_PATTERN = Pattern.compile("Amount of Rifts you have closed: <col=ff0000>([0-9,]+)</col>.");
|
||||
|
||||
private static final String TOTAL_LEVEL_COMMAND_STRING = "!total";
|
||||
private static final String PRICE_COMMAND_STRING = "!price";
|
||||
@@ -538,6 +539,13 @@ public class ChatCommandsPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
matcher = GUARDIANS_OF_THE_RIFT_PATTERN.matcher(message);
|
||||
if (matcher.find())
|
||||
{
|
||||
int kc = Integer.parseInt(matcher.group(1));
|
||||
setKc("Guardians of the Rift", kc);
|
||||
}
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -2152,6 +2160,11 @@ public class ChatCommandsPlugin extends Plugin
|
||||
case "jad 6":
|
||||
return "TzHaar-Ket-Rak's Sixth Challenge";
|
||||
|
||||
// Guardians of the Rift
|
||||
case "gotr":
|
||||
case "runetodt":
|
||||
return "Guardians of the Rift";
|
||||
|
||||
default:
|
||||
return WordUtils.capitalize(boss);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user