mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Updated for 1.2.0.7
This commit is contained in:
parent
50dffeb6a1
commit
58a12fdfa3
@ -112,6 +112,7 @@ use pocketmine\network\mcpe\protocol\SetSpawnPositionPacket;
|
||||
use pocketmine\network\mcpe\protocol\SetTimePacket;
|
||||
use pocketmine\network\mcpe\protocol\SetTitlePacket;
|
||||
use pocketmine\network\mcpe\protocol\ShowCreditsPacket;
|
||||
use pocketmine\network\mcpe\protocol\ShowProfilePacket;
|
||||
use pocketmine\network\mcpe\protocol\ShowStoreOfferPacket;
|
||||
use pocketmine\network\mcpe\protocol\SimpleEventPacket;
|
||||
use pocketmine\network\mcpe\protocol\SpawnExperienceOrbPacket;
|
||||
@ -544,4 +545,8 @@ abstract class NetworkSession{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function handleShowProfile(ShowProfilePacket $packet) : bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
@ -134,6 +134,7 @@ class PacketPool{
|
||||
static::registerPacket(new ModalFormResponsePacket());
|
||||
static::registerPacket(new ServerSettingsRequestPacket());
|
||||
static::registerPacket(new ServerSettingsResponsePacket());
|
||||
static::registerPacket(new ShowProfilePacket());
|
||||
|
||||
static::registerPacket(new BatchPacket());
|
||||
}
|
||||
|
@ -39,15 +39,15 @@ interface ProtocolInfo{
|
||||
/**
|
||||
* Actual Minecraft: PE protocol version
|
||||
*/
|
||||
const CURRENT_PROTOCOL = 130;
|
||||
const CURRENT_PROTOCOL = 131;
|
||||
/**
|
||||
* Current Minecraft PE version reported by the server. This is usually the earliest currently supported version.
|
||||
*/
|
||||
const MINECRAFT_VERSION = 'v1.2.0.2 beta';
|
||||
const MINECRAFT_VERSION = 'v1.2.0.7 beta';
|
||||
/**
|
||||
* Version number sent to clients in ping responses.
|
||||
*/
|
||||
const MINECRAFT_VERSION_NETWORK = '1.2.0.2';
|
||||
const MINECRAFT_VERSION_NETWORK = '1.2.0.7';
|
||||
|
||||
const LOGIN_PACKET = 0x01;
|
||||
const PLAY_STATUS_PACKET = 0x02;
|
||||
@ -152,5 +152,6 @@ interface ProtocolInfo{
|
||||
const MODAL_FORM_RESPONSE_PACKET = 0x65;
|
||||
const SERVER_SETTINGS_REQUEST_PACKET = 0x66;
|
||||
const SERVER_SETTINGS_RESPONSE_PACKET = 0x67;
|
||||
const SHOW_PROFILE_PACKET = 0x68;
|
||||
|
||||
}
|
||||
|
44
src/pocketmine/network/mcpe/protocol/ShowProfilePacket.php
Normal file
44
src/pocketmine/network/mcpe/protocol/ShowProfilePacket.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
*
|
||||
* ____ _ _ __ __ _ __ __ ____
|
||||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* @author PocketMine Team
|
||||
* @link http://www.pocketmine.net/
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\NetworkSession;
|
||||
|
||||
class ShowProfilePacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::SHOW_PROFILE_PACKET;
|
||||
|
||||
public function decodePayload(){
|
||||
//TODO
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
//TODO
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
return $session->handleShowProfile($this);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user