Skip to content

Releases

v2.5.1

Choose a tag to compare

@PresentKim PresentKim released this 05 Dec 00:25
1847b52

🐛 Fixes

  • The plugin enables on PocketMine-MP 5.51.3: plugin.yml no longer nests the sub command permissions under children
    (they are added to addonsmanager.command when the command is made).
  • A phar built without the toast pack of toast-utils still enables, with a warning, and shows the results on the action
    bar.
  • The phar includes the toast resource pack of toast-utils again (fixed in the plugin builder), so the toasts are shown
    as toasts instead of falling back to the action bar.

v2.5.0

Choose a tag to compare

@PresentKim PresentKim released this 02 Dec 15:08
48bc3bd

✨ Features

  • The result of /addons reload and /addons manage is shown as a toast in the top right corner of the screen with
    toast-utils 1.0, and the other players with the command permission get a toast
    that tells them to rejoin instead of the title and the action bar. A server that does not require the toast pack shows
    it on the action bar. Errors and the list of failed files stay in the chat.
  • toast in the new config.yml (default true) turns it off: the chat messages, the title and the action bar are used as before.

v2.4.0

Choose a tag to compare

@PresentKim PresentKim released this 02 Dec 03:26
4418f28

✨ Features

  • /addons manage turns several add-ons of the addons/ folder on or off at once with a form of checkboxes (a multiselect
    row of the custom form, Bedrock client 1.26.50 or later). An add-on that is off stays loaded but is not sent to the players
    that join from now on, and it stays off after /addons reload and a restart (plugin_data/AddonsManager/disabled.json).
    AddonsManager::getFolderAddons(), isDisabled() and setFolderAddonsEnabled() do the same from code.
  • /addons list is drawn as a grid of cards with an icon for the type of each add-on, with the bundled resource pack
    (resources/pack, not required). The pack wraps the vanilla long_form (it is not redefined) and only reacts to a long,
    invisible marker at the start of the title, so other form packs keep working and a client without the pack sees the
    ordinary button list. The add-ons that are off are listed too.
  • /addons help lists the subcommands with their usage and description, and the Korean messages for the syntax error and
    the help are included (libcommand 3.2).
  • /feedbacksound [on|off|volume <0~1>] lets each player turn the feedback sounds off or lower them
    (play-sound-utils 4.2).
  • The first time a player opens the add-on list, an action bar hint tells about /addons manage (shown once per player).

🔄 Changes

  • Requires libcommand ^3.2, play-sound-utils ^4.2 and closure-form-utils ^2.1.

v2.3.0

Choose a tag to compare

@PresentKim PresentKim released this 01 Dec 21:39
1346730

✨ Features

  • /addons is built with libcommand: list and reload are
    autocompleted in the clients. The name, the aliases l / r and the permission addonsmanager.command are kept
    (addonsmanager.command.list and addonsmanager.command.reload are children of it).
  • Every message is translated per player (English and Korean, resources/locale/), including the description of the
    command.
  • /addons list opens a form for a player: select an add-on to see its UUID, type, version, size, source and
    dependencies. A button lists the files of the addons/ folder that failed to load, with the reason. The console keeps the
    text output.
  • /addons reload shows a title and an action bar notice to every online player with the command permission, telling that
    the players already connected must rejoin to see the changes. The sender hears a success or error sound.
  • AddonsManager::getLoadErrors() returns why the files of the addons/ folder failed to load.

🐛 Fixes

  • An add-on of the addons/ folder that cannot be registered (for example its UUID is used by a resource pack of the
    server) is reported as a failed file instead of stopping the load.

v2.2.0

Choose a tag to compare

@PresentKim PresentKim released this 01 Dec 21:13
4567065

🔧 Changes

  • Resource packs are added to the server's resource pack stack, so the server sends them like its own packs (and other
    plugins, such as a CDN plugin, see them). Behavior packs and the experiments are sent with
    resourcepack-register 2.2, which adds them to the packets
    next to what other plugins added. The plugin no longer has packet listeners of its own.
  • The add-ons stop being sent when the plugin is disabled, and are sent again when it is enabled.
  • Addons implements pocketmine\resourcepacks\ResourcePack (getPackId() returns the lowercase UUID).

⚠️ Breaking changes

  • register() throws InvalidArgumentException when the server already has a resource pack with the same UUID.
  • Removed the internal AddonsManager::get*InfoEntries() / get*StackEntries(), Main::overrideExperiments() and
    Main::MAX_CHUNK_SIZE.

v2.1.0

Choose a tag to compare

@PresentKim PresentKim released this 01 Dec 15:27
cec8d4c

✨ Features

  • /addons list lists the loaded add-ons, and /addons reload loads the addons/ folder again without a restart
    (permission addonsmanager.command, operators by default). Add-ons registered by plugins are kept, and connected
    players need to rejoin to receive the changes.
  • AddonsManager::reload(), AddonsManager::isFromFolder() and AddonsManager::getFolderPath().

v2.0.1

Choose a tag to compare

@PresentKim PresentKim released this 27 Nov 11:33

Changed

  • The plugin name is now AddonsManager instead of refAddonsManager. The data folder moves with it, so rename
    plugin_data/refAddonsManager to plugin_data/AddonsManager to keep existing settings, and update any depend / softdepend entries.

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.