New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Staff join messages not redirecting [skip ci] #2369
Conversation
Looks good, not sure if we want to add more test cases for the other ranks, I have all(?) the characters used for each but not the colour code so we might not be able to make them 100% accurate Admin "" |
They're in the enum as well, but I don't want to add "fake" test cases we created. The ones we have now are copied from the game |
Ah, I didn't notice the enum. Best to keep the test cases as real examples then |
@@ -216,6 +216,10 @@ public void ChatRedirectFeature_LoginRedirector_FOREGROUND_PATTERN() { | |||
p.shouldMatch("\uE023 §#44aa3300v8j§a has just logged in!"); | |||
// champion nickname | |||
p.shouldMatch("\uE017 §#ffe60000§ocharlie268IsAWizard§6 has just logged in!"); | |||
// moderator nickname, new style | |||
p.shouldMatch("\uE01F §6§o§<1>Navi§e has just logged in!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we using INCLUDE_EVENTS here? Does the method even use that for getting the string? (If so , why?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdym?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&<1> is an event (clickable or hoverable, I don't remember). I am asking why this method is matching clickable events, as we never do this, and only use regular MC-styles.
Probably merge just before scrolling