Skip to content

Commit

Permalink
more exact prio status text match
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Nov 5, 2024
1 parent 9405c1b commit 6926dc1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ private void parse2bPrioQueueState(final ClientboundTabListPacket packet) {
* prio:
* "This account has priority status and will be placed in a shorter queue."
*/
EVENT_BUS.postAsync(new PrioStatusEvent(!messageString.contains("shop.2b2t.org")));
if (messageString.contains("purchase priority queue")) {
EVENT_BUS.postAsync(new PrioStatusEvent(false));
} else if (messageString.contains("has priority status")) {
EVENT_BUS.postAsync(new PrioStatusEvent(true));
}
});
}

Expand Down

0 comments on commit 6926dc1

Please sign in to comment.