mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
better custom packet handling
This commit is contained in:
@ -28,13 +28,15 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
require_once("classes/Session.class.php");
|
||||
|
||||
class PocketMinecraftServer{
|
||||
protected $interface, $protocol, $entities, $player, $cnt, $events, $username, $version, $clients, $serverType;
|
||||
var $seed, $protocol;
|
||||
protected $interface, $entities, $player, $cnt, $events, $username, $version, $clients, $serverType;
|
||||
function __construct($username, $protocol = CURRENT_PROTOCOL, $version = CURRENT_VERSION){
|
||||
//$this->player = new Player($username);
|
||||
$this->version = (int) $version;
|
||||
$this->username = $username;
|
||||
$this->cnt = 1;
|
||||
$this->serverID = substr(Utils::generateKey(), 0, 8);
|
||||
$this->seed = "\x4f\xf0\x2d\x84\x00\x00\x00\x00";
|
||||
$this->events = array("disabled" => array());
|
||||
$this->actions = array();
|
||||
$this->clients = array();
|
||||
|
Reference in New Issue
Block a user