mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Bump version to 0.14.2.0 and protocol changes
This commit is contained in:
parent
754ff9b4c4
commit
ac482621a1
@ -1177,6 +1177,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
|
|
||||||
$pk = new AdventureSettingsPacket();
|
$pk = new AdventureSettingsPacket();
|
||||||
$pk->flags = $flags;
|
$pk->flags = $flags;
|
||||||
|
$pk->userPermission = 2;
|
||||||
|
$pk->globalPermission = 2;
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,8 +75,8 @@ namespace pocketmine {
|
|||||||
const VERSION = "1.6dev";
|
const VERSION = "1.6dev";
|
||||||
const API_VERSION = "2.0.0";
|
const API_VERSION = "2.0.0";
|
||||||
const CODENAME = "[REDACTED]";
|
const CODENAME = "[REDACTED]";
|
||||||
const MINECRAFT_VERSION = "v0.14.0.0 alpha";
|
const MINECRAFT_VERSION = "v0.14.2.0 alpha";
|
||||||
const MINECRAFT_VERSION_NETWORK = "0.14.0.0";
|
const MINECRAFT_VERSION_NETWORK = "0.14.2.0";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Startup code. Do not look at it, it may harm you.
|
* Startup code. Do not look at it, it may harm you.
|
||||||
|
@ -28,6 +28,8 @@ class AdventureSettingsPacket extends DataPacket{
|
|||||||
const NETWORK_ID = Info::ADVENTURE_SETTINGS_PACKET;
|
const NETWORK_ID = Info::ADVENTURE_SETTINGS_PACKET;
|
||||||
|
|
||||||
public $flags;
|
public $flags;
|
||||||
|
public $userPermission;
|
||||||
|
public $globalPermission;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
|
|
||||||
@ -36,6 +38,8 @@ class AdventureSettingsPacket extends DataPacket{
|
|||||||
public function encode(){
|
public function encode(){
|
||||||
$this->reset();
|
$this->reset();
|
||||||
$this->putInt($this->flags);
|
$this->putInt($this->flags);
|
||||||
|
$this->putInt($this->userPermission);
|
||||||
|
$this->putInt($this->globalPermission);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -30,7 +30,7 @@ interface Info{
|
|||||||
/**
|
/**
|
||||||
* Actual Minecraft: PE protocol version
|
* Actual Minecraft: PE protocol version
|
||||||
*/
|
*/
|
||||||
const CURRENT_PROTOCOL = 45;
|
const CURRENT_PROTOCOL = 60;
|
||||||
|
|
||||||
const LOGIN_PACKET = 0x8f;
|
const LOGIN_PACKET = 0x8f;
|
||||||
const PLAY_STATUS_PACKET = 0x90;
|
const PLAY_STATUS_PACKET = 0x90;
|
||||||
|
@ -38,6 +38,7 @@ class StartGamePacket extends DataPacket{
|
|||||||
public $x;
|
public $x;
|
||||||
public $y;
|
public $y;
|
||||||
public $z;
|
public $z;
|
||||||
|
public $unknown;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
|
|
||||||
@ -56,7 +57,10 @@ class StartGamePacket extends DataPacket{
|
|||||||
$this->putFloat($this->x);
|
$this->putFloat($this->x);
|
||||||
$this->putFloat($this->y);
|
$this->putFloat($this->y);
|
||||||
$this->putFloat($this->z);
|
$this->putFloat($this->z);
|
||||||
|
$this->putByte(1);
|
||||||
|
$this->putByte(1);
|
||||||
$this->putByte(0);
|
$this->putByte(0);
|
||||||
|
$this->putString($this->unknown);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user