mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-19 17:40:38 +00:00
API 1.11.0, fixed phar check
This commit is contained in:
parent
7ef8edccf4
commit
438591bd75
@ -71,7 +71,7 @@ namespace pocketmine {
|
|||||||
use pocketmine\wizard\Installer;
|
use pocketmine\wizard\Installer;
|
||||||
|
|
||||||
const VERSION = "1.4.1dev";
|
const VERSION = "1.4.1dev";
|
||||||
const API_VERSION = "1.10.0";
|
const API_VERSION = "1.11.0";
|
||||||
const CODENAME = "絶好(Zekkou)ケーキ(Cake)";
|
const CODENAME = "絶好(Zekkou)ケーキ(Cake)";
|
||||||
const MINECRAFT_VERSION = "v0.10.4 alpha";
|
const MINECRAFT_VERSION = "v0.10.4 alpha";
|
||||||
|
|
||||||
@ -434,7 +434,7 @@ namespace pocketmine {
|
|||||||
new Installer();
|
new Installer();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(substr(__FILE__, 0, 7) !== "phar://"){
|
if(\Phar::running(true) !== ""){
|
||||||
$logger->warning("Non-packaged PocketMine-MP installation detected, do not use on production.");
|
$logger->warning("Non-packaged PocketMine-MP installation detected, do not use on production.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ class RakLibInterface implements ServerInstance, SourceInterface{
|
|||||||
$ev = new PlayerCreationEvent($this, Player::class, Player::class, null, $address, $port);
|
$ev = new PlayerCreationEvent($this, Player::class, Player::class, null, $address, $port);
|
||||||
$this->server->getPluginManager()->callEvent($ev);
|
$this->server->getPluginManager()->callEvent($ev);
|
||||||
$class = $ev->getPlayerClass();
|
$class = $ev->getPlayerClass();
|
||||||
|
|
||||||
$player = new $class($this, $ev->getClientId(), $ev->getAddress(), $ev->getPort());
|
$player = new $class($this, $ev->getClientId(), $ev->getAddress(), $ev->getPort());
|
||||||
$this->players[$identifier] = $player;
|
$this->players[$identifier] = $player;
|
||||||
$this->identifiersACK[$identifier] = 0;
|
$this->identifiersACK[$identifier] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user