File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/me/jaimemartz/lobbybalancer Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments