mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/17898936142
This commit is contained in:
@@ -50,6 +50,7 @@ use pocketmine\lang\Language;
|
||||
use pocketmine\lang\LanguageNotFoundException;
|
||||
use pocketmine\lang\Translatable;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\network\mcpe\auth\AuthKeyProvider;
|
||||
use pocketmine\network\mcpe\compression\CompressBatchPromise;
|
||||
use pocketmine\network\mcpe\compression\CompressBatchTask;
|
||||
use pocketmine\network\mcpe\compression\Compressor;
|
||||
@@ -271,6 +272,7 @@ class Server{
|
||||
private int $maxPlayers;
|
||||
|
||||
private bool $onlineMode = true;
|
||||
private AuthKeyProvider $authKeyProvider;
|
||||
|
||||
private Network $network;
|
||||
private bool $networkCompressionAsync = true;
|
||||
@@ -987,6 +989,8 @@ class Server{
|
||||
$this->logger->warning($this->language->translate(KnownTranslationFactory::pocketmine_server_authProperty_disabled()));
|
||||
}
|
||||
|
||||
$this->authKeyProvider = new AuthKeyProvider(new \PrefixedLogger($this->logger, "Minecraft Auth Key Provider"), $this->asyncPool);
|
||||
|
||||
if($this->configGroup->getConfigBool(ServerProperties::HARDCORE, false) && $this->getDifficulty() < World::DIFFICULTY_HARD){
|
||||
$this->configGroup->setConfigInt(ServerProperties::DIFFICULTY, World::DIFFICULTY_HARD);
|
||||
}
|
||||
@@ -1806,6 +1810,10 @@ class Server{
|
||||
return $this->forceLanguage;
|
||||
}
|
||||
|
||||
public function getAuthKeyProvider() : AuthKeyProvider{
|
||||
return $this->authKeyProvider;
|
||||
}
|
||||
|
||||
public function getNetwork() : Network{
|
||||
return $this->network;
|
||||
}
|
||||
|
Reference in New Issue
Block a user