fix: do not check instance if player was kicked during config state

This commit is contained in:
mworzala 2024-02-17 22:01:56 -05:00
parent 7ec3e3021e
commit c9a4b4b9c1
No known key found for this signature in database
GPG Key ID: B148F922E64797C7

View File

@ -267,6 +267,7 @@ public final class ConnectionManager {
var event = new AsyncPlayerConfigurationEvent(player, isFirstConfig);
EventDispatcher.call(event);
if (!player.isOnline()) return; // Player was kicked during config.
final Instance spawningInstance = event.getSpawningInstance();
Check.notNull(spawningInstance, "You need to specify a spawning instance in the AsyncPlayerConfigurationEvent");