parent
6d8779e444
commit
eded931189
5 changed files with 14 additions and 4 deletions
|
|
@ -1421,6 +1421,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||
|
||||
$pk = new AdventureSettingsPacket();
|
||||
$pk->flags = $flags;
|
||||
$pk->userPermission = 2;
|
||||
$pk->globalPermission = 2;
|
||||
$this->dataPacket($pk);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ namespace pocketmine {
|
|||
const VERSION = "1.1dev";
|
||||
const API_VERSION = "2.0.0";
|
||||
const CODENAME = "Ikaros";
|
||||
const MINECRAFT_VERSION = "v0.14.x alpha";
|
||||
const MINECRAFT_VERSION_NETWORK = "0.14.1";
|
||||
const MINECRAFT_VERSION = "v0.14.2 alpha";
|
||||
const MINECRAFT_VERSION_NETWORK = "0.14.2";
|
||||
const GENISYS_API_VERSION = '1.7.2';
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ class AdventureSettingsPacket extends DataPacket{
|
|||
const NETWORK_ID = Info::ADVENTURE_SETTINGS_PACKET;
|
||||
|
||||
public $flags;
|
||||
public $userPermission;
|
||||
public $globalPermission;
|
||||
|
||||
public function decode(){
|
||||
|
||||
|
|
@ -36,6 +38,8 @@ class AdventureSettingsPacket extends DataPacket{
|
|||
public function encode(){
|
||||
$this->reset();
|
||||
$this->putInt($this->flags);
|
||||
$this->putInt($this->userPermission);
|
||||
$this->putInt($this->globalPermission);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -30,8 +30,8 @@ interface Info{
|
|||
/**
|
||||
* Actual Minecraft: PE protocol version
|
||||
*/
|
||||
const CURRENT_PROTOCOL = 46;
|
||||
const ACCEPTED_PROTOCOLS = [45, 46];
|
||||
const CURRENT_PROTOCOL = 60;
|
||||
const ACCEPTED_PROTOCOLS = [45, 46, 60];
|
||||
|
||||
const LOGIN_PACKET = 0x8f;
|
||||
const PLAY_STATUS_PACKET = 0x90;
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ class StartGamePacket extends DataPacket{
|
|||
public $x;
|
||||
public $y;
|
||||
public $z;
|
||||
public $unknown;
|
||||
|
||||
public function decode(){
|
||||
|
||||
|
|
@ -56,7 +57,10 @@ class StartGamePacket extends DataPacket{
|
|||
$this->putFloat($this->x);
|
||||
$this->putFloat($this->y);
|
||||
$this->putFloat($this->z);
|
||||
$this->putByte(1);
|
||||
$this->putByte(1);
|
||||
$this->putByte(0);
|
||||
$this->putString($this->unknown);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue