Repository navigation
v2.0.0
The version for PocketMine-MP API 4 is kept on the
legacy/pmmp-5.44 branch.
⚠️ Breaking changes
- Targets axolotl-pm/PocketMine-MP
5.51(BedrockProtocol 64,
Bedrock1.26.60) and PHP 8.4+ (ext-ziprequired). - Distributed as a phar from GitHub Releases instead of Poggit. The data folder remover is now
presentkim/remove-plugin-data-folder^2.0, bundled in the phar. - Source files moved from
src/ref/api/addonsmanager/tosrc/. - Bedrock sends behavior packs in the same list as resource packs, so the protocol no longer has a separate behavior pack
type.Addons::getType()and theSimpleAddonsBuilderconstructor use theResourcePackTypeenum instead of anint,
andAddonsManager::getBehaviorPackInfoEntries()returnsResourcePackInfoEntry[](BehaviorPackInfoEntryis gone).
Behavior pack entries are appended to the resource pack lists and marked as add-on packs.
✨ Features
Addons::hasScripts(); ascriptmodule is accepted (the pack is a behavior pack) and the client is told the add-on has scripts.- The overridden experiments are also applied to the resource pack stack, where the client reads them.
- An add-on that fails to load is logged as a warning and skipped.
🐛 Fixes
Addons::getSize()returned the archive size plus one, which did not match the data sent to the client.- Generated UUIDs are formatted as
8-4-4-4-12, whichramsey/uuid4 requires (the unhyphenated hash threw). - A manifest with an invalid header UUID raises
ResourcePackExceptioninstead of aramsey/uuidexception. - The archive no longer asks libzip for Deflate64 compression (which it cannot write); entries use Deflate.
- Temporary file and
ZipArchivefailures are reported instead of being ignored.
🧪 Tests
- PHPUnit tests (class loading,
Addons, folder / zip loading,SimpleAddonsBuilder,AddonsManager, experiments) and GitHub Actions CI.