So when a player join the server, he is logged out due to generic reason and below the message i have this for exemple : [Server thread/ERROR]: Player noxi69 was disconnected before their login could be verified I have check my code and set some code into com and i have find that the problem is in my PlayerCreationEvent but i don't understand why. public function onCreation(PlayerCreationEvent $event){ $event->setPlayerClass(ASPlayer::class); if (class_exists("Lobby\LBPlayer")) { $event->setPlayerClass(LBPlayer::class); } else if (class_exists("Kitpvp\KPPlayer")) { $event->setPlayerClass(KPPlayer::class); } } Can you help me pls