From 3d63ea085461f56aad36d41c8a3fee5124768f4d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 7 Dec 2012 02:31:59 +0100 Subject: [PATCH] Features --- README | 13 +++++++++++-- classes/PocketMinecraftServer.class.php | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README b/README index c211f960c..519b8e7d1 100644 --- a/README +++ b/README @@ -28,5 +28,14 @@ along with this program. If not, see . \ | / -Client/Server Minecraft Pocket Edition library written in PHP. -Currently a work in progress, and used to document http://www.wiki.vg/Pocket_Minecraft_Protocol \ No newline at end of file +Server (and client) Minecraft Pocket Edition library written in PHP. +Currently a work in progress, and used to document http://www.wiki.vg/Pocket_Minecraft_Protocol + +Current features of the server: + - Players can connect and move around the world + - Online list broadcast + - Health and position saving + - server.properties configuration file + - Whitelist and IP Ban files + - Survival & Creative + - Awesome features in server list! diff --git a/classes/PocketMinecraftServer.class.php b/classes/PocketMinecraftServer.class.php index 450363dff..ff441edcf 100644 --- a/classes/PocketMinecraftServer.class.php +++ b/classes/PocketMinecraftServer.class.php @@ -199,7 +199,7 @@ class PocketMinecraftServer{ $data[0], $this->serverID, MAGIC, - $this->serverType. $this->name . " [".($this->gamemode === 1 ? "C":"S")." ".count($this->clients)."/".$this->maxClients."] ".$txt, + $this->serverType. $this->name . " [".($this->gamemode === 1 ? "C":"S").$this->whitelist !== false ? "W":"")" ".count($this->clients)."/".$this->maxClients."] ".$txt, ), false, $packet["ip"], $packet["port"]); $this->custom["times_".$CID] = ($this->custom["times_".$CID] + 1) % strlen($this->description); break;