mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Added MC_REMOVE_PLAYER
This commit is contained in:
parent
6db36c238f
commit
d71a088460
@ -49,7 +49,7 @@ define("MC_SET_TIME", 0x86);
|
|||||||
define("MC_START_GAME", 0x87);
|
define("MC_START_GAME", 0x87);
|
||||||
define("MC_ADD_MOB", 0x88);
|
define("MC_ADD_MOB", 0x88);
|
||||||
define("MC_ADD_PLAYER", 0x89);
|
define("MC_ADD_PLAYER", 0x89);
|
||||||
//define("MC_REMOVE_PLAYER", 0x8a);
|
define("MC_REMOVE_PLAYER", 0x8a);
|
||||||
|
|
||||||
define("MC_ADD_ENTITY", 0x8c);
|
define("MC_ADD_ENTITY", 0x8c);
|
||||||
define("MC_REMOVE_ENTITY", 0x8d);
|
define("MC_REMOVE_ENTITY", 0x8d);
|
||||||
|
@ -244,6 +244,15 @@ class CustomPacketHandler{
|
|||||||
$this->raw .= Utils::writeMetadata($this->data["metadata"]);
|
$this->raw .= Utils::writeMetadata($this->data["metadata"]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MC_REMOVE_PLAYER:
|
||||||
|
if($this->c === false){
|
||||||
|
$this->data["clientID"] = Utils::readLong($this->get(8));
|
||||||
|
$this->data["eid"] = Utils::readInt($this->get(4));
|
||||||
|
}else{
|
||||||
|
$this->raw .= Utils::writeLong($this->data["clientID"]);
|
||||||
|
$this->raw .= Utils::writeInt($this->data["eid"]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case MC_ADD_ENTITY: //Not used?
|
case MC_ADD_ENTITY: //Not used?
|
||||||
if($this->c === false){
|
if($this->c === false){
|
||||||
$this->data["eid"] = Utils::readInt($this->get(4));
|
$this->data["eid"] = Utils::readInt($this->get(4));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user