Skip to content

v2.0.0

Choose a tag to compare

@PresentKim PresentKim released this 27 Nov 11:25

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,
    Bedrock 1.26.60) and PHP 8.4+ (ext-zip required).
  • 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/ to src/.
  • 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 the SimpleAddonsBuilder constructor use the ResourcePackType enum instead of an int,
    and AddonsManager::getBehaviorPackInfoEntries() returns ResourcePackInfoEntry[] (BehaviorPackInfoEntry is gone).
    Behavior pack entries are appended to the resource pack lists and marked as add-on packs.

✨ Features

  • Addons::hasScripts(); a script module 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, which ramsey/uuid 4 requires (the unhyphenated hash threw).
  • A manifest with an invalid header UUID raises ResourcePackException instead of a ramsey/uuid exception.
  • The archive no longer asks libzip for Deflate64 compression (which it cannot write); entries use Deflate.
  • Temporary file and ZipArchive failures are reported instead of being ignored.

🧪 Tests

  • PHPUnit tests (class loading, Addons, folder / zip loading, SimpleAddonsBuilder, AddonsManager, experiments) and GitHub Actions CI.