Skip to content

Commit

Permalink
added maybe odin support
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Oct 11, 2024
1 parent a1c8bfd commit adb7670
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ object InquisitorWaypointShare {
"party.inquisitorchecker",
"(?<party>§9Party §8> )?(?<playerName>.+)§f: §rA MINOS INQUISITOR has spawned near \\[(?<area>.*)] at Coords (?<x>[^ ]+) (?<y>[^ ]+) (?<z>[^ ]+)"
)

// Support for maybe odin, not sure what
/**
* 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 @@ -237,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 adb7670

Please sign in to comment.