Skip to content

Commit

Permalink
Improvement: More Inquis messages (#2720)
Browse files Browse the repository at this point in the history
Co-authored-by: hannibal2 <[email protected]>
Co-authored-by: Cal <[email protected]>
  • Loading branch information
3 people authored Oct 13, 2024
1 parent e0ae2e8 commit c5915be
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ object InquisitorWaypointShare {
"party.inquisitorchecker",
"(?<party>§9Party §8> )?(?<playerName>.+)§f: §rA MINOS INQUISITOR has spawned near \\[(?<area>.*)] at Coords (?<x>[^ ]+) (?<y>[^ ]+) (?<z>[^ ]+)"
)

/**
* REGEX-TEST: §9Party §8> §b[MVP§9+§b] _088§f: §rx: 86, y: 73, z: -29 I dug up an inquisitor come over here!
*/
private val odinPattern by patternGroup.pattern(
"party.odin",
"(?<party>§9Party §8> )?(?<playerName>.+)§f: §rx: (?<x>[^ ]+), y: (?<y>[^ ]+), z: (?<z>[^ ]+) I dug up an inquisitor come over here!"
)

private val diedPattern by patternGroup.pattern(
"died",
"(?<party>§9Party §8> )?(?<playerName>.*)§f: §rInquisitor dead!"
Expand Down Expand Up @@ -238,6 +247,11 @@ object InquisitorWaypointShare {
event.cancel()
}
}
odinPattern.matchMatcher(message) {
if (detectFromChat()) {
event.cancel()
}
}

partyOnlyCoordsPattern.matchMatcher(message) {
if (detectFromChat()) {
Expand Down

0 comments on commit c5915be

Please sign in to comment.