mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 23:33:06 +00:00
New StartGamePacket fields for 0.15.90.8
This commit is contained in:
parent
39ffc28f2a
commit
9a12aa689e
@ -40,12 +40,13 @@ class StartGamePacket extends DataPacket{
|
|||||||
public $spawnX;
|
public $spawnX;
|
||||||
public $spawnY;
|
public $spawnY;
|
||||||
public $spawnZ;
|
public $spawnZ;
|
||||||
public $hasBeenLoadedInCreative = 1;
|
public $hasAchievementsDisabled = 1;
|
||||||
public $dayCycleStopTime = -1; //-1 = not stopped, any positive value = stopped at that time
|
public $dayCycleStopTime = -1; //-1 = not stopped, any positive value = stopped at that time
|
||||||
public $eduMode = 0;
|
public $eduMode = 0;
|
||||||
public $rainLevel;
|
public $rainLevel;
|
||||||
public $lightningLevel;
|
public $lightningLevel;
|
||||||
public $commandsEnabled;
|
public $commandsEnabled;
|
||||||
|
public $isTexturePacksRequired = 0;
|
||||||
public $unknown;
|
public $unknown;
|
||||||
public $worldName;
|
public $worldName;
|
||||||
|
|
||||||
@ -66,12 +67,13 @@ class StartGamePacket extends DataPacket{
|
|||||||
$this->putVarInt($this->gamemode);
|
$this->putVarInt($this->gamemode);
|
||||||
$this->putVarInt($this->difficulty);
|
$this->putVarInt($this->difficulty);
|
||||||
$this->putBlockCoords($this->spawnX, $this->spawnY, $this->spawnZ);
|
$this->putBlockCoords($this->spawnX, $this->spawnY, $this->spawnZ);
|
||||||
$this->putByte($this->hasBeenLoadedInCreative);
|
$this->putByte($this->hasAchievementsDisabled);
|
||||||
$this->putVarInt($this->dayCycleStopTime);
|
$this->putVarInt($this->dayCycleStopTime);
|
||||||
$this->putByte($this->eduMode);
|
$this->putByte($this->eduMode);
|
||||||
$this->putLFloat($this->rainLevel);
|
$this->putLFloat($this->rainLevel);
|
||||||
$this->putLFloat($this->lightningLevel);
|
$this->putLFloat($this->lightningLevel);
|
||||||
$this->putByte($this->commandsEnabled);
|
$this->putByte($this->commandsEnabled);
|
||||||
|
$this->putByte($this->isTexturePacksRequired);
|
||||||
$this->putString($this->unknown);
|
$this->putString($this->unknown);
|
||||||
$this->putString($this->worldName);
|
$this->putString($this->worldName);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user