mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Merge branch 'stable' into next-minor
This commit is contained in:
commit
fab12707ae
@ -9,7 +9,7 @@
|
|||||||
- [Documentation](http://pmmp.readthedocs.org/)
|
- [Documentation](http://pmmp.readthedocs.org/)
|
||||||
- [Installation instructions](https://pmmp.readthedocs.io/en/rtfd/installation.html)
|
- [Installation instructions](https://pmmp.readthedocs.io/en/rtfd/installation.html)
|
||||||
- [Docker image](https://hub.docker.com/r/pmmp/pocketmine-mp)
|
- [Docker image](https://hub.docker.com/r/pmmp/pocketmine-mp)
|
||||||
- [Plugin repository](https://poggit.pmmp.io)
|
- [Plugin repository](https://poggit.pmmp.io/plugins)
|
||||||
|
|
||||||
### Discussion
|
### Discussion
|
||||||
- [Forums](https://forums.pmmp.io/)
|
- [Forums](https://forums.pmmp.io/)
|
||||||
@ -22,8 +22,8 @@
|
|||||||
* [Contributing Guidelines](CONTRIBUTING.md)
|
* [Contributing Guidelines](CONTRIBUTING.md)
|
||||||
|
|
||||||
### Donate
|
### Donate
|
||||||
- Bitcoin Cash (BCH): `qz9p8dqkv0r7aahdatu5uewqfkvstrglv58f8yle07`
|
- Bitcoin Cash (BCH): `qq3r46hn6ljnhnqnfwxt5pg3g447eq9jhvw5ddfear`
|
||||||
- Bitcoin (BTC): `1PVAyDJ2g7kcjCxAC3C89oxpV2ZYcLad8T`
|
- Bitcoin (BTC): `171u8K9e4FtU6j3e5sqNoxKUgEw9qWQdRV`
|
||||||
- [Patreon](https://www.patreon.com/pocketminemp)
|
- [Patreon](https://www.patreon.com/pocketminemp)
|
||||||
|
|
||||||
## Licensing information
|
## Licensing information
|
||||||
|
73
build/make-release.php
Normal file
73
build/make-release.php
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace pocketmine\build_script;
|
||||||
|
|
||||||
|
use pocketmine\utils\VersionString;
|
||||||
|
use function dirname;
|
||||||
|
use function fgets;
|
||||||
|
use function file_get_contents;
|
||||||
|
use function file_put_contents;
|
||||||
|
use function preg_quote;
|
||||||
|
use function preg_replace;
|
||||||
|
use function sleep;
|
||||||
|
use function sprintf;
|
||||||
|
use function system;
|
||||||
|
use const pocketmine\BASE_VERSION;
|
||||||
|
use const STDIN;
|
||||||
|
|
||||||
|
require_once dirname(__DIR__) . '/src/pocketmine/VersionInfo.php';
|
||||||
|
require_once dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
|
$currentVer = new VersionString(BASE_VERSION);
|
||||||
|
$nextVer = new VersionString(sprintf(
|
||||||
|
"%u.%u.%u",
|
||||||
|
$currentVer->getMajor(),
|
||||||
|
$currentVer->getMinor(),
|
||||||
|
$currentVer->getPatch() + 1
|
||||||
|
));
|
||||||
|
|
||||||
|
|
||||||
|
$versionInfoPath = dirname(__DIR__) . '/src/pocketmine/VersionInfo.php';
|
||||||
|
$versionInfo = file_get_contents($versionInfoPath);
|
||||||
|
|
||||||
|
file_put_contents($versionInfoPath, preg_replace(
|
||||||
|
'/^const IS_DEVELOPMENT_BUILD = true;$/m',
|
||||||
|
'const IS_DEVELOPMENT_BUILD = false;',
|
||||||
|
$versionInfo
|
||||||
|
));
|
||||||
|
echo "please add appropriate notes to the changelog and press enter...";
|
||||||
|
fgets(STDIN);
|
||||||
|
system('git add "' . dirname(__DIR__) . '/changelogs"');
|
||||||
|
system('git commit -m "Release ' . BASE_VERSION . '" --include "' . $versionInfoPath . '"');
|
||||||
|
system('git tag ' . BASE_VERSION);
|
||||||
|
file_put_contents($versionInfoPath, $mod = preg_replace(
|
||||||
|
$pattern = '/^const BASE_VERSION = "' . preg_quote(BASE_VERSION, '/') . '";$/m',
|
||||||
|
'const BASE_VERSION = "' . $nextVer->getBaseVersion() . '";',
|
||||||
|
$versionInfo
|
||||||
|
));
|
||||||
|
system('git add "' . $versionInfoPath . '"');
|
||||||
|
system('git commit -m "' . $nextVer->getBaseVersion() . ' is next" --include "' . $versionInfoPath . '"');
|
||||||
|
echo "pushing changes in 10 seconds";
|
||||||
|
sleep(10);
|
||||||
|
system('git push origin HEAD ' . BASE_VERSION);
|
@ -54,3 +54,4 @@ This changelog **does not account for protocol changes**. If your plugin uses th
|
|||||||
- PID of server is now reported in the error message when attempting to run two servers from the same data directory at once.
|
- PID of server is now reported in the error message when attempting to run two servers from the same data directory at once.
|
||||||
- Fixed sluggish playercount updating on MOTD.
|
- Fixed sluggish playercount updating on MOTD.
|
||||||
- Added new MultiRecipe UUIDs.
|
- Added new MultiRecipe UUIDs.
|
||||||
|
- Added an extra field to `StartGamePacket` to resolve minor incompatibility issues on different 1.11.x patch versions.
|
||||||
|
@ -22,6 +22,6 @@
|
|||||||
namespace pocketmine;
|
namespace pocketmine;
|
||||||
|
|
||||||
const NAME = "PocketMine-MP";
|
const NAME = "PocketMine-MP";
|
||||||
const BASE_VERSION = "3.8.5";
|
const BASE_VERSION = "3.8.6";
|
||||||
const IS_DEVELOPMENT_BUILD = true;
|
const IS_DEVELOPMENT_BUILD = true;
|
||||||
const BUILD_NUMBER = 0;
|
const BUILD_NUMBER = 0;
|
||||||
|
@ -138,6 +138,9 @@ class StartGamePacket extends DataPacket{
|
|||||||
/** @var string */
|
/** @var string */
|
||||||
public $multiplayerCorrelationId = ""; //TODO: this should be filled with a UUID of some sort
|
public $multiplayerCorrelationId = ""; //TODO: this should be filled with a UUID of some sort
|
||||||
|
|
||||||
|
/** @var bool */
|
||||||
|
public $onlySpawnV1Villagers = false;
|
||||||
|
|
||||||
/** @var array|null each entry must have a "name" (string) and "data" (int16) element */
|
/** @var array|null each entry must have a "name" (string) and "data" (int16) element */
|
||||||
public $runtimeIdTable = null;
|
public $runtimeIdTable = null;
|
||||||
|
|
||||||
@ -202,6 +205,7 @@ class StartGamePacket extends DataPacket{
|
|||||||
$this->runtimeIdTable = $table;
|
$this->runtimeIdTable = $table;
|
||||||
|
|
||||||
$this->multiplayerCorrelationId = $this->getString();
|
$this->multiplayerCorrelationId = $this->getString();
|
||||||
|
$this->onlySpawnV1Villagers = $this->getBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload(){
|
protected function encodePayload(){
|
||||||
@ -265,6 +269,7 @@ class StartGamePacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->putString($this->multiplayerCorrelationId);
|
$this->putString($this->multiplayerCorrelationId);
|
||||||
|
$this->putBool($this->onlySpawnV1Villagers);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function serializeBlockTable(array $table) : string{
|
private static function serializeBlockTable(array $table) : string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user