Skip to content

Commit f53fd61

Browse files
committed
fix reveal trap set off detection
1 parent 8a00af8 commit f53fd61

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

1.16_combat-6/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/TrapUpgrade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class TrapUpgrade extends TeamUpgrade {
5353

5454
private final static Pattern[] REGEX = {
5555
Pattern.compile("^\\b[A-Za-z0-9_§]{3,16}\\b purchased (.+) Trap.?\\s*$"),
56-
Pattern.compile("Trap was set (off)!"),
56+
Pattern.compile("[Tt]rap (?:was )?set (off)(?: by .+ from .+ team)?!"),
5757
Pattern.compile("Removed (.+) from the (queue)!\\s*$")
5858
};
5959

1.20/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/TrapUpgrade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class TrapUpgrade extends TeamUpgrade {
4848

4949
private final static Pattern[] REGEX = {
5050
Pattern.compile("^\\b[A-Za-z0-9_§]{3,16}\\b purchased (.+) Trap.?\\s*$"),
51-
Pattern.compile("Trap was set (off)!"),
51+
Pattern.compile("[Tt]rap (?:was )?set (off)(?: by .+ from .+ team)?!"),
5252
Pattern.compile("Removed (.+) from the (queue)!\\s*$")
5353
};
5454

1.21.4/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/TrapUpgrade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class TrapUpgrade extends TeamUpgrade {
4949

5050
private final static Pattern[] REGEX = {
5151
Pattern.compile("^\\b[A-Za-z0-9_§]{3,16}\\b purchased (.+) Trap.?\\s*$"),
52-
Pattern.compile("Trap was set (off)!"),
52+
Pattern.compile("[Tt]rap (?:was )?set (off)(?: by .+ from .+ team)?!"),
5353
Pattern.compile("Removed (.+) from the (queue)!\\s*$")
5454
};
5555

1.21/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/TrapUpgrade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class TrapUpgrade extends TeamUpgrade {
4848

4949
private final static Pattern[] REGEX = {
5050
Pattern.compile("^\\b[A-Za-z0-9_§]{3,16}\\b purchased (.+) Trap.?\\s*$"),
51-
Pattern.compile("Trap was set (off)!"),
51+
Pattern.compile("[Tt]rap (?:was )?set (off)(?: by .+ from .+ team)?!"),
5252
Pattern.compile("Removed (.+) from the (queue)!\\s*$")
5353
};
5454

1.8.9/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/TrapUpgrade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class TrapUpgrade extends TeamUpgrade {
4848

4949
private final static Pattern[] REGEX = {
5050
Pattern.compile("^\\b[A-Za-z0-9_§]{3,16}\\b purchased (.+) Trap.?\\s*$"),
51-
Pattern.compile("Trap was set (off)!"),
51+
Pattern.compile("[Tt]rap (?:was )?set (off)(?: by .+ from .+ team)?!"),
5252
Pattern.compile("Removed (.+) Trap from the (queue)!\\s*$")
5353
};
5454

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.parallel=true
66
axolotlclient.modules.all=true
77

88
# Mod Properties
9-
version=3.1.2-beta.5
9+
version=3.1.2-beta.6
1010

1111
maven_group=io.github.axolotlclient
1212

0 commit comments

Comments
 (0)