mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
Updated name to PocketMine-MP
This commit is contained in:
parent
843469208b
commit
ba3524dbc7
12
README.md
12
README.md
@ -15,8 +15,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
@ -28,14 +28,14 @@
|
|||||||
\ | /
|
\ | /
|
||||||
|
|
||||||
|
|
||||||
Pocket-Minecraft-PHP
|
PocketMine-MP
|
||||||
====================
|
=============
|
||||||
Github repo: https://github.com/shoghicp/Pocket-Minecraft-PHP
|
Github repo: https://github.com/shoghicp/PocketMine-MP
|
||||||
|
|
||||||
Server (and client) Minecraft Pocket Edition library written in PHP.
|
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
|
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`**
|
**Project Status: `PRE-ALPHA`**
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
@ -94,12 +94,12 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
|||||||
$this->server->api = $this;
|
$this->server->api = $this;
|
||||||
if($this->getProperty("last-update") === false or ($this->getProperty("last-update") + 3600) < time()){
|
if($this->getProperty("last-update") === false or ($this->getProperty("last-update") + 3600) < time()){
|
||||||
console("[INFO] Checking for new version...");
|
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 = new DateTime($info["updated_at"]);
|
||||||
$last = $last->getTimestamp();
|
$last = $last->getTimestamp();
|
||||||
if($last >= $this->getProperty("last-update") and $this->getProperty("last-update") !== false){
|
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] 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/Pocket-Minecraft-PHP/archive/master.zip");
|
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\"");
|
console("[NOTICE] This message will dissapear when you issue the command \"/update-done\"");
|
||||||
sleep(3);
|
sleep(3);
|
||||||
}else{
|
}else{
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
@ -32,7 +32,7 @@ class PocketMinecraftServer extends stdClass{
|
|||||||
private $database, $interface, $evCnt, $handCnt, $events, $handlers, $version, $serverType, $lastTick;
|
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){
|
function __construct($name, $gamemode = 1, $seed = false, $protocol = CURRENT_PROTOCOL, $port = 19132, $serverID = false, $version = CURRENT_VERSION){
|
||||||
$this->port = (int) $port; //19132 - 19135
|
$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);
|
console("[INFO] Starting Minecraft PE Server at *:".$this->port);
|
||||||
if($this->port < 19132 or $this->port > 19135){
|
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");
|
console("[WARNING] You've selected a not-standard port. Normal port range is from 19132 to 19135 included");
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-
|
-
|
||||||
/ \
|
/ \
|
||||||
/ \
|
/ \
|
||||||
/ POCKET \
|
/ PocketMine \
|
||||||
/ MINECRAFT PHP \
|
/ MP \
|
||||||
|\ @shoghicp /|
|
|\ @shoghicp /|
|
||||||
|. \ / .|
|
|. \ / .|
|
||||||
| .. \ / .. |
|
| .. \ / .. |
|
||||||
|
13
server.php
13
server.php
@ -3,19 +3,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
-
|
-
|
||||||
/ \
|
|
||||||
/ \
|
|
||||||
/ POCKET \
|
|
||||||
/ MINECRAFT PHP \
|
|
||||||
|\ @shoghicp /|
|
|
||||||
|. \ / .|
|
|
||||||
| .. \ / .. |
|
|
||||||
| .. | .. |
|
|
||||||
| .. | .. |
|
|
||||||
\ | /
|
|
||||||
\ | /
|
|
||||||
\ | /
|
|
||||||
\ | /
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user