mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-16 04:11:39 +01:00
fix: do not check instance if player was kicked during config state
This commit is contained in:
parent
7ec3e3021e
commit
c9a4b4b9c1
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user