mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Provide a way for plugins such as Specter to bypass chain verification
This commit is contained in:
parent
e709e3c653
commit
6facd8b50f
@ -1837,7 +1837,11 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->server->getScheduler()->scheduleAsyncTask(new VerifyLoginTask($this, $packet));
|
||||
if(!$packet->skipVerification){
|
||||
$this->server->getScheduler()->scheduleAsyncTask(new VerifyLoginTask($this, $packet));
|
||||
}else{
|
||||
$this->onVerifyCompleted($packet, true, true);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -60,6 +60,14 @@ class LoginPacket extends DataPacket{
|
||||
/** @var array decoded payload of the clientData JWT */
|
||||
public $clientData = [];
|
||||
|
||||
/**
|
||||
* This field may be used by plugins to bypass keychain verification. It should only be used for plugins such as
|
||||
* Specter where passing verification would take too much time and not be worth it.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $skipVerification = false;
|
||||
|
||||
public function canBeSentBeforeLogin() : bool{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user