Protocol 25

This commit is contained in:
Shoghi Cervantes
2015-04-28 16:56:59 +02:00
parent 71587db2be
commit 1b13a4c1ec
6 changed files with 6 additions and 5 deletions

View File

@ -24,6 +24,7 @@ namespace pocketmine\network;
use pocketmine\event\player\PlayerCreationEvent;
use pocketmine\network\protocol\DataPacket;
use pocketmine\network\protocol\Info as ProtocolInfo;
use pocketmine\network\protocol\Info;
use pocketmine\network\protocol\UnknownPacket;
use pocketmine\Player;
use pocketmine\Server;
@ -179,7 +180,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
}
public function setName($name){
$this->interface->sendOption("name", "MCCPP;Demo;$name");
$this->interface->sendOption("name", "MCPE;".addcslashes($name, ";").";".Info::CURRENT_PROTOCOL.";".\pocketmine\MINECRAFT_VERSION_NETWORK);
}
public function setPortCheck($name){

View File

@ -30,7 +30,7 @@ interface Info{
/**
* Actual Minecraft: PE protocol version
*/
const CURRENT_PROTOCOL = 24;
const CURRENT_PROTOCOL = 25;
const LOGIN_PACKET = 0x82;
const PLAY_STATUS_PACKET = 0x83;