diff --git a/README.md b/README.md index 2e015d789..7a0b2c5a2 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ - / \ / \ - / POCKET \ - / MINECRAFT PHP \ + / PocketMine \ + / MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | @@ -28,14 +28,14 @@ \ | / -Pocket-Minecraft-PHP -==================== -Github repo: https://github.com/shoghicp/Pocket-Minecraft-PHP +PocketMine-MP +============= +Github repo: https://github.com/shoghicp/PocketMine-MP 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 -How to install it: https://github.com/shoghicp/Pocket-Minecraft-PHP/wiki/Tutorial:-Setting-up-a-Server +How to install it: https://github.com/shoghicp/PocketMine-MP/wiki/Tutorial:-Setting-up-a-Server **Project Status: `PRE-ALPHA`** diff --git a/classes/API/ConsoleAPI.php b/classes/API/ConsoleAPI.php index e86c9f14d..9c5bbc0d3 100644 --- a/classes/API/ConsoleAPI.php +++ b/classes/API/ConsoleAPI.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/API/EntityAPI.php b/classes/API/EntityAPI.php index 0b5af081b..1a06adb44 100644 --- a/classes/API/EntityAPI.php +++ b/classes/API/EntityAPI.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/API/LevelAPI.php b/classes/API/LevelAPI.php index 1a82a7067..17c239538 100644 --- a/classes/API/LevelAPI.php +++ b/classes/API/LevelAPI.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/API/PlayerAPI.php b/classes/API/PlayerAPI.php index 683f7b5e5..c6ccbc2b9 100644 --- a/classes/API/PlayerAPI.php +++ b/classes/API/PlayerAPI.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/API/ServerAPI.php b/classes/API/ServerAPI.php index 2804abb3b..352512119 100644 --- a/classes/API/ServerAPI.php +++ b/classes/API/ServerAPI.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | @@ -94,12 +94,12 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run $this->server->api = $this; if($this->getProperty("last-update") === false or ($this->getProperty("last-update") + 3600) < time()){ console("[INFO] Checking for new version..."); - $info = json_decode(Utils::curl_get("https://api.github.com/repos/shoghicp/Pocket-Minecraft-PHP"), true); + $info = json_decode(Utils::curl_get("https://api.github.com/repos/shoghicp/PocketMine-MP"), true); $last = new DateTime($info["updated_at"]); $last = $last->getTimestamp(); if($last >= $this->getProperty("last-update") and $this->getProperty("last-update") !== false){ - console("[NOTICE] Pocket-PHP-Minecraft has been updated at ".date("Y-m-d H:i:s", $last)); - console("[NOTICE] If you want to update, get the latest version at https://github.com/shoghicp/Pocket-Minecraft-PHP/archive/master.zip"); + console("[NOTICE] PocketMine-MP has been updated at ".date("Y-m-d H:i:s", $last)); + console("[NOTICE] If you want to update, get the latest version at https://github.com/shoghicp/PocketMine-MP/archive/master.zip"); console("[NOTICE] This message will dissapear when you issue the command \"/update-done\""); sleep(3); }else{ diff --git a/classes/API/TimeAPI.php b/classes/API/TimeAPI.php index 35776acd4..b43d3709b 100644 --- a/classes/API/TimeAPI.php +++ b/classes/API/TimeAPI.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/ChunkParser.class.php b/classes/ChunkParser.class.php index e6ef36e71..fc04b0060 100644 --- a/classes/ChunkParser.class.php +++ b/classes/ChunkParser.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/CustomPacketHandler.class.php b/classes/CustomPacketHandler.class.php index 04f7f811f..0f390e489 100644 --- a/classes/CustomPacketHandler.class.php +++ b/classes/CustomPacketHandler.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/Entity.class.php b/classes/Entity.class.php index 7ebe3b04a..1163989cd 100644 --- a/classes/Entity.class.php +++ b/classes/Entity.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/Java.class.php b/classes/Java.class.php index c17c8eba9..87e4f124e 100644 --- a/classes/Java.class.php +++ b/classes/Java.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/MinecraftInterface.class.php b/classes/MinecraftInterface.class.php index fa7ec37d1..a2f262729 100644 --- a/classes/MinecraftInterface.class.php +++ b/classes/MinecraftInterface.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/Packet.class.php b/classes/Packet.class.php index b3bcd2037..eb334a5c9 100644 --- a/classes/Packet.class.php +++ b/classes/Packet.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/PocketMinecraftServer.class.php b/classes/PocketMinecraftServer.class.php index 3c5c969c4..8aaf02fa3 100644 --- a/classes/PocketMinecraftServer.class.php +++ b/classes/PocketMinecraftServer.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | @@ -32,7 +32,7 @@ class PocketMinecraftServer extends stdClass{ private $database, $interface, $evCnt, $handCnt, $events, $handlers, $version, $serverType, $lastTick; function __construct($name, $gamemode = 1, $seed = false, $protocol = CURRENT_PROTOCOL, $port = 19132, $serverID = false, $version = CURRENT_VERSION){ $this->port = (int) $port; //19132 - 19135 - console("[INFO] Pocket-Minecraft-PHP by @shoghicp, LGPL License. http://bit.ly/RE7uaW", true, true, 0); + console("[INFO] PocketMine-MP by @shoghicp, LGPL License. http://bit.ly/TbrimG", true, true, 0); 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"); diff --git a/classes/SerializedPacketHandler.class.php b/classes/SerializedPacketHandler.class.php index 98d40d0e8..f6afa4c81 100644 --- a/classes/SerializedPacketHandler.class.php +++ b/classes/SerializedPacketHandler.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/Session.class.php b/classes/Session.class.php index 6af5e144c..bf3b27f2a 100644 --- a/classes/Session.class.php +++ b/classes/Session.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/UDPSocket.class.php b/classes/UDPSocket.class.php index 202a33c89..05da80f75 100644 --- a/classes/UDPSocket.class.php +++ b/classes/UDPSocket.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/classes/Utils.class.php b/classes/Utils.class.php index acd2b91d7..9ba37e22b 100644 --- a/classes/Utils.class.php +++ b/classes/Utils.class.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/common/config.php b/common/config.php index 57d7554bc..6a5e6fe09 100644 --- a/common/config.php +++ b/common/config.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/common/dependencies.php b/common/dependencies.php index 00c113cab..7e7b577c6 100644 --- a/common/dependencies.php +++ b/common/dependencies.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/common/functions.php b/common/functions.php index cbc3e9f5f..0efc7f96a 100644 --- a/common/functions.php +++ b/common/functions.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/example/client.php b/example/client.php index cb3df70be..bf97ba587 100644 --- a/example/client.php +++ b/example/client.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/input.php b/input.php index ac9d14c89..1e9107a84 100644 --- a/input.php +++ b/input.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/pstruct/4.php b/pstruct/4.php index 959218404..d001acd9e 100644 --- a/pstruct/4.php +++ b/pstruct/4.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/pstruct/5.php b/pstruct/5.php index be3cd7071..3f06258db 100644 --- a/pstruct/5.php +++ b/pstruct/5.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/pstruct/RakNet.php b/pstruct/RakNet.php index 46153c1d8..d14b24356 100644 --- a/pstruct/RakNet.php +++ b/pstruct/RakNet.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/pstruct/dataName.php b/pstruct/dataName.php index e8ae41858..9004d666d 100644 --- a/pstruct/dataName.php +++ b/pstruct/dataName.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/pstruct/packetName.php b/pstruct/packetName.php index 87c330106..c556aa138 100644 --- a/pstruct/packetName.php +++ b/pstruct/packetName.php @@ -5,8 +5,8 @@ - / \ / \ - / POCKET \ -/ MINECRAFT PHP \ + / PocketMine \ +/ MP \ |\ @shoghicp /| |. \ / .| | .. \ / .. | diff --git a/server.php b/server.php index 4da6f3cb8..86a4cbd86 100644 --- a/server.php +++ b/server.php @@ -3,19 +3,6 @@ /* - - / \ - / \ - / POCKET \ -/ MINECRAFT PHP \ -|\ @shoghicp /| -|. \ / .| -| .. \ / .. | -| .. | .. | -| .. | .. | -\ | / - \ | / - \ | / - \ | / 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