mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-09-19 03:01:18 +02: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);
|
AtomicBoolean matches = new AtomicBoolean(false);
|
||||||
String reason = TextComponent.toPlainText(event.getKickReasonComponent());
|
String reason = TextComponent.toPlainText(event.getKickReasonComponent());
|
||||||
for (String string : ConfigEntries.RECONNECT_KICK_REASONS.get()) {
|
for (String string : ConfigEntries.RECONNECT_KICK_REASONS.get()) {
|
||||||
if (reason.matches(string)) {
|
if (reason.matches(string) || reason.contains(string)) {
|
||||||
matches.set(true);
|
matches.set(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ public final class StatusInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (String pattern : ConfigEntries.SERVER_CHECK_MARKER_DESCS.get()) {
|
for (String pattern : ConfigEntries.SERVER_CHECK_MARKER_DESCS.get()) {
|
||||||
if (description.matches(pattern)) {
|
if (description.matches(pattern) || description.contains(pattern)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user