From 344449fa1204fec383ade25760dae994597d549f Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 5 Jan 2013 13:39:37 +0100 Subject: [PATCH] Removed Raknet version & added Current MC version --- README.md | 12 ------------ src/classes/PocketMinecraftServer.class.php | 4 ++-- src/common/config.php | 8 ++++---- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index a12a42027..1f81df120 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,6 @@ The entire server is done in PHP, and has been tested, profiled and optimized to [FAQ: Frequently Asked Questions](https://github.com/shoghicp/PocketMine-MP/wiki/Frequently-Asked-Questions) -**Project Status: `ALPHA`** - -**Tested in: `v4.0.0, v5.0.0`** - ## Current features of the server: @@ -53,14 +49,6 @@ The entire server is done in PHP, and has been tested, profiled and optimized to * Update Channels!! (stable / dev) -## How to contact me - -* Email - -* Twitter - [@shoghicp](https://twitter.com/shoghicp) -* Via IRC - #mcdevs or #mcpedevs on *irc.freenode.net* (or just /msg me there) -* [MinecraftForums profile](http://www.minecraftforum.net/user/1476633-shoghicp/) - - ## Third-party Libraries Used * __[PHP cURL](http://php.net/manual/en/book.curl.php)__ * __[PHP Sockets](http://php.net/manual/en/book.sockets.php)__ diff --git a/src/classes/PocketMinecraftServer.class.php b/src/classes/PocketMinecraftServer.class.php index e492e6987..9673b9a02 100644 --- a/src/classes/PocketMinecraftServer.class.php +++ b/src/classes/PocketMinecraftServer.class.php @@ -28,9 +28,10 @@ the Free Software Foundation, either version 3 of the License, or class PocketMinecraftServer extends stdClass{ var $invisible, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $timePerSecond, $responses, $spawn, $entities, $mapDir, $mapName, $map, $level, $tileEntities; private $database, $interface, $evCnt, $handCnt, $events, $handlers, $version, $serverType, $lastTick; - function __construct($name, $gamemode = 1, $seed = false, $port = 19132, $serverID = false, $version = CURRENT_VERSION){ + function __construct($name, $gamemode = 1, $seed = false, $port = 19132, $serverID = false){ $this->port = (int) $port; //19132 - 19135 console("[INFO] PocketMine-MP ".MAJOR_VERSION." by @shoghicp, LGPL License", true, true, 0); + console("[DEBUG] Target Minecraft PE: ".CURRENT_MINECRAFT_VERSION, true, true, 2); console("[INFO] Starting Minecraft PE Server at *:".$this->port); if($this->port < 19132 or $this->port > 19135){ console("[WARNING] You've selected a not-standard port. Normal port range is from 19132 to 19135 included"); @@ -38,7 +39,6 @@ class PocketMinecraftServer extends stdClass{ console("[INFO] Loading database..."); $this->startDatabase(); $this->gamemode = (int) $gamemode; - $this->version = (int) $version; $this->name = $name; $this->mapDir = false; $this->mapName = false; diff --git a/src/common/config.php b/src/common/config.php index 6b4892e15..65a93e82f 100644 --- a/src/common/config.php +++ b/src/common/config.php @@ -34,10 +34,10 @@ ini_set("display_errors", 1); ini_set('default_charset', 'utf-8'); define("FILE_PATH", dirname(__FILE__)."/../../"); set_include_path(get_include_path() . PATH_SEPARATOR . FILE_PATH . PATH_SEPARATOR . FILE_PATH . "/src/" . PATH_SEPARATOR . FILE_PATH . "/src/classes/"); -ini_set("memory_limit", "256M"); -define("CURRENT_PROTOCOL", 5); -define("CURRENT_VERSION", 1); +ini_set("memory_limit", "512M"); define("LOG", true); define("MAGIC", "\x00\xff\xff\x00\xfe\xfe\xfe\xfe\xfd\xfd\xfd\xfd\x12\x34\x56\x78"); define("TEST_MD5", "5ca8eced50a5801619f7ae86d631a4e7"); -define("MAJOR_VERSION", "Alpha_1.0.4"); \ No newline at end of file +define("MAJOR_VERSION", "Alpha_1.0.4"); +define("CURRENT_PROTOCOL", 5); +define("CURRENT_MINECRAFT_VERSION", "v0.5.0 alpha"); \ No newline at end of file