Add missing condition

This commit is contained in:
Allink 2022-05-19 22:55:22 +01:00 committed by GitHub
parent a68840a0c1
commit d3fa88308c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ public final class PlayerConnection implements Listener {
event.allow();
}
if (Result.KICK_FULL.equals(event.getResult())) {
if (Result.KICK_FULL.equals(event.getResult() && ALLOW_JOIN_ON_FULL_SERVER)) {
event.allow();
}