mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-09 04:20:32 +01:00
I guess this is simpler for the end users
This commit is contained in:
parent
c15518898c
commit
eba1582ac6
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user