mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Set default gamemode to SURVIVAL
This commit is contained in:
parent
1c03fb0de9
commit
8345fd02c4
3 changed files with 12 additions and 13 deletions
|
|
@ -71,12 +71,12 @@ class PocketMinecraftServer{
|
|||
$this->timePerSecond = 20;
|
||||
$this->tickMeasure = array_fill(0, 40, 0);
|
||||
$this->setType("normal");
|
||||
$this->interface = new MinecraftInterface("255.255.255.255", $this->port, true, false);
|
||||
$this->interface = new MinecraftInterface("255.255.255.255", $this->port, true, false, $this->serverip);
|
||||
$this->reloadConfig();
|
||||
$this->stop = false;
|
||||
}
|
||||
|
||||
function __construct($name, $gamemode = CREATIVE, $seed = false, $port = 19132, $serverID = false, $serverip = "0.0.0.0"){
|
||||
function __construct($name, $gamemode = SURVIVAL, $seed = false, $port = 19132, $serverID = false, $serverip = "0.0.0.0"){
|
||||
$this->port = (int) $port; //19132 - 19135
|
||||
$this->doTick = true;
|
||||
$this->gamemode = (int) $gamemode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue