screenshot plugin: capitalize pet messages constant

This commit is contained in:
Adam
2018-06-04 09:49:33 -04:00
parent 0560ef239b
commit f72071f5bf

View File

@@ -107,7 +107,7 @@ public class ScreenshotPlugin extends Plugin
private static final Pattern NUMBER_PATTERN = Pattern.compile("([0-9]+)");
private static final Pattern LEVEL_UP_PATTERN = Pattern.compile("Your ([a-zA-Z]+) (?:level is|are)? now (\\d+)\\.");
private static final ImmutableList<String> petMessages = ImmutableList.of("You have a funny feeling like you're being followed",
private static final ImmutableList<String> PET_MESSAGES = ImmutableList.of("You have a funny feeling like you're being followed",
"You feel something weird sneaking into your backpack",
"You have a funny feeling like you would have been followed");
@@ -252,8 +252,8 @@ public class ScreenshotPlugin extends Plugin
return;
}
}
if (config.screenshotPet() && petMessages.stream().anyMatch(chatMessage::contains))
if (config.screenshotPet() && PET_MESSAGES.stream().anyMatch(chatMessage::contains))
{
String fileName = "Pet " + TIME_FORMAT.format(new Date());
takeScreenshot(fileName);