Skip to content

Commit

Permalink
Merge pull request #2724
Browse files Browse the repository at this point in the history
* Improvement: Make Breaking Power chat filter match more than just gem…

* add regex test
  • Loading branch information
qtlunya authored Oct 12, 2024
1 parent 1f35f9f commit ee5b8b2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ object PowderMiningChatFilter {

/**
* REGEX-TEST: §cYou need a tool with a §r§aBreaking Power §r§cof §r§66§r§c to mine Ruby Gemstone Block§r§c! Speak to §r§dFragilis §r§cby the entrance to the Crystal Hollows to learn more!
* REGEX-TEST: §cYou need a tool with a §r§aBreaking Power §r§cof §r§64§r§c to mine Mithril§r§c! Speak to §r§dFragilis §r§cby the entrance to the Crystal Hollows to learn more!
*/
private val breakingPowerPattern by patternGroup.pattern(
"warning.breakingpower",
"§cYou need a tool with a §r§aBreaking Power §r§cof (?:§.)*\\d+§r§c to mine (Ruby|Amethyst|Jade|Amber|Sapphire|Topaz) Gemstone Block§r§c!.+",
"§cYou need a tool with a §r§aBreaking Power §r§cof (?:§.)*\\d+§r§c to mine .+",
)

/**
Expand Down

0 comments on commit ee5b8b2

Please sign in to comment.