Skip to content

Commit eba1582

Browse files
committed
I guess this is simpler for the end users
1 parent c155188 commit eba1582

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/me/jaimemartz/lobbybalancer/listener/ServerKickListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void onKick(ServerKickEvent event) {
6060
AtomicBoolean matches = new AtomicBoolean(false);
6161
String reason = TextComponent.toPlainText(event.getKickReasonComponent());
6262
for (String string : ConfigEntries.RECONNECT_KICK_REASONS.get()) {
63-
if (reason.matches(string)) {
63+
if (reason.matches(string) || reason.contains(string)) {
6464
matches.set(true);
6565
break;
6666
}

src/main/java/me/jaimemartz/lobbybalancer/ping/StatusInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public boolean isAccessible() {
3030
}
3131

3232
for (String pattern : ConfigEntries.SERVER_CHECK_MARKER_DESCS.get()) {
33-
if (description.matches(pattern)) {
33+
if (description.matches(pattern) || description.contains(pattern)) {
3434
return false;
3535
}
3636
}

0 commit comments

Comments
 (0)