mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-22 19:31: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;
|
||||
|
||||
const VERSION = "1.4.1dev";
|
||||
const API_VERSION = "1.10.0";
|
||||
const API_VERSION = "1.11.0";
|
||||
const CODENAME = "絶好(Zekkou)ケーキ(Cake)";
|
||||
const MINECRAFT_VERSION = "v0.10.4 alpha";
|
||||
|
||||
@ -434,7 +434,7 @@ namespace pocketmine {
|
||||
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.");
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ class RakLibInterface implements ServerInstance, SourceInterface{
|
||||
$ev = new PlayerCreationEvent($this, Player::class, Player::class, null, $address, $port);
|
||||
$this->server->getPluginManager()->callEvent($ev);
|
||||
$class = $ev->getPlayerClass();
|
||||
|
||||
|
||||
$player = new $class($this, $ev->getClientId(), $ev->getAddress(), $ev->getPort());
|
||||
$this->players[$identifier] = $player;
|
||||
$this->identifiersACK[$identifier] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user