Skip to content

Commit

Permalink
- Fixed transaction filter
Browse files Browse the repository at this point in the history
- Updated staff detection for new 'Admin' rank
  • Loading branch information
hashalite committed Jun 10, 2023
1 parent 2006be1 commit d42d3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/xolt/sbutils/util/RegexFilters.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class RegexFilters {

// Chat Logger

public static final Pattern incomingTransactionFilter = Pattern.compile("Shop transaction completed by [\u00a7_a-zA-Z0-9]+ at X: -?[0-9]+ Y: -?[0-9]+ Z: -?[0-9]+ - Remaining trades: [0-9]+");
public static final Pattern incomingTransactionFilter = Pattern.compile("Shop transaction completed by [\u00a7_a-zA-Z0-9]+ at X: -?[0-9]+ Y: -?[0-9]+ Z: -?[0-9]+ - Remaining trades: (/|[0-9]+) \\(Owned: (/|[0-9]+x \\[.*\\]), Wanted: (/|[0-9]+x \\[.*\\])\\)");
public static final Pattern outgoingTransactionFilter = Pattern.compile("Transaction succeeded.");
public static final Pattern incomingMsgFilter = Pattern.compile("\\[([\u00a7_a-zA-Z0-9]+) -> me\\] .*");
public static final Pattern outgoingMsgFilter = Pattern.compile("\\[me -> [\u00a7_a-zA-Z0-9]+\\] .*");
Expand Down Expand Up @@ -81,5 +81,5 @@ public class RegexFilters {

// Staff Detector

public static final Pattern staffFilter = Pattern.compile("\\[Helper\\].*|\\[Mod\\].*|\\[Dev\\].*|\\[Manager\\].*");
public static final Pattern staffFilter = Pattern.compile("\\[Helper\\].*|\\[Mod\\].*|\\[Dev\\].*|\\[Manager\\].*|\\[Admin\\].*");
}

0 comments on commit d42d3d1

Please sign in to comment.