1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

disconnected before their login could be verified

Discussion in 'Help' started by Noxi69, Feb 21, 2021.

  1. Noxi69

    Noxi69 Spider

    Messages:
    10
    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
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.