Skip to content

Commit

Permalink
screenshot plugin: capitalize pet messages constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Jun 4, 2018
1 parent 0560ef2 commit f72071f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -252,8 +252,8 @@ public void onChatMessage(ChatMessage event)
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);
Expand Down

0 comments on commit f72071f

Please sign in to comment.