I guess this is simpler for the end users

This commit is contained in:
Jaime Martinez Rincon 2017-04-27 22:25:43 +02:00
parent c15518898c
commit eba1582ac6
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class ServerKickListener implements Listener {
AtomicBoolean matches = new AtomicBoolean(false);
String reason = TextComponent.toPlainText(event.getKickReasonComponent());
for (String string : ConfigEntries.RECONNECT_KICK_REASONS.get()) {
if (reason.matches(string)) {
if (reason.matches(string) || reason.contains(string)) {
matches.set(true);
break;
}

View File

@ -30,7 +30,7 @@ public final class StatusInfo {
}
for (String pattern : ConfigEntries.SERVER_CHECK_MARKER_DESCS.get()) {
if (description.matches(pattern)) {
if (description.matches(pattern) || description.contains(pattern)) {
return false;
}
}