mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Preparing 0.7.4 features
This commit is contained in:
parent
a66c1c76f8
commit
4156aad71f
@ -36,10 +36,7 @@ class PocketMinecraftServer{
|
|||||||
if($this->version->isDev()){
|
if($this->version->isDev()){
|
||||||
console("[INFO] \x1b[31;1mThis is a Development version");
|
console("[INFO] \x1b[31;1mThis is a Development version");
|
||||||
}
|
}
|
||||||
console("[INFO] Starting \x1b[36;1m".CURRENT_MINECRAFT_VERSION."\x1b[0m #".CURRENT_PROTOCOL." Minecraft PE Server at ".$this->serverip.":".$this->port);
|
console("[INFO] Starting server for Minecraft: PE \x1b[36;1m".CURRENT_MINECRAFT_VERSION."\x1b[0m #".CURRENT_PROTOCOL." at ".$this->serverip.":".$this->port);
|
||||||
if($this->port < 19132 or $this->port > 19135){ //Mojang =(
|
|
||||||
console("[WARNING] You've selected a not-standard port. Normal port range is from 19132 to 19135 included");
|
|
||||||
}
|
|
||||||
define("BOOTUP_RANDOM", Utils::getRandomBytes(16));
|
define("BOOTUP_RANDOM", Utils::getRandomBytes(16));
|
||||||
$this->serverID = $this->serverID === false ? Utils::readLong(Utils::getRandomBytes(8, false)):$this->serverID;
|
$this->serverID = $this->serverID === false ? Utils::readLong(Utils::getRandomBytes(8, false)):$this->serverID;
|
||||||
$this->seed = $this->seed === false ? Utils::readInt(Utils::getRandomBytes(4, false)):$this->seed;
|
$this->seed = $this->seed === false ? Utils::readInt(Utils::getRandomBytes(4, false)):$this->seed;
|
||||||
@ -77,7 +74,7 @@ class PocketMinecraftServer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
function __construct($name, $gamemode = SURVIVAL, $seed = false, $port = 19132, $serverip = "0.0.0.0"){
|
function __construct($name, $gamemode = SURVIVAL, $seed = false, $port = 19132, $serverip = "0.0.0.0"){
|
||||||
$this->port = (int) $port; //19132 - 19135
|
$this->port = (int) $port;
|
||||||
$this->doTick = true;
|
$this->doTick = true;
|
||||||
$this->gamemode = (int) $gamemode;
|
$this->gamemode = (int) $gamemode;
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
TITLE PocketMine-MP server software for Minecraft: Pocket Edition
|
TITLE PocketMine-MP server software for Minecraft: Pocket Edition
|
||||||
COLOR 0F
|
COLOR 0F
|
||||||
mode con: cols=90
|
mode con: cols=110
|
||||||
cd /d %~dp0
|
cd /d %~dp0
|
||||||
FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i
|
FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i
|
||||||
if not "%PHPOUTPUT%"=="1" (
|
if not "%PHPOUTPUT%"=="1" (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user