This commit is contained in:
Adrian 2022-08-13 08:47:41 -05:00 committed by GitHub
parent 08bfbd7469
commit 24274a4c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ public class ConnectListener {
@Subscribe @Subscribe
public void onServerPreConnect(ServerPreConnectEvent event, Continuation continuation) { public void onServerPreConnect(ServerPreConnectEvent event, Continuation continuation) {
if (!event.getResult().isAllowed() && api.isLogged(event.getPlayer())) { if (!event.getResult().isAllowed() || api.isLogged(event.getPlayer())) {
continuation.resume(); continuation.resume();
return; return;
} }