Repository navigation
Releases
Releases · presentkim-pm/AddonsManager
v2.5.1
🐛 Fixes
- The plugin enables on PocketMine-MP 5.51.3:
plugin.ymlno longer nests the sub command permissions underchildren
(they are added toaddonsmanager.commandwhen 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
✨ Features
- The result of
/addons reloadand/addons manageis 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. toastin the newconfig.yml(defaulttrue) turns it off: the chat messages, the title and the action bar are used as before.
v2.4.0
✨ Features
/addons manageturns several add-ons of theaddons/folder on or off at once with a form of checkboxes (amultiselect
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 reloadand a restart (plugin_data/AddonsManager/disabled.json).
AddonsManager::getFolderAddons(),isDisabled()andsetFolderAddonsEnabled()do the same from code./addons listis 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 vanillalong_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 helplists 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.2and closure-form-utils^2.1.
v2.3.0
✨ Features
/addonsis built with libcommand:listandreloadare
autocompleted in the clients. The name, the aliasesl/rand the permissionaddonsmanager.commandare kept
(addonsmanager.command.listandaddonsmanager.command.reloadare children of it).- Every message is translated per player (English and Korean,
resources/locale/), including the description of the
command. /addons listopens 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 theaddons/folder that failed to load, with the reason. The console keeps the
text output./addons reloadshows 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 theaddons/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
🔧 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.
Addonsimplementspocketmine\resourcepacks\ResourcePack(getPackId()returns the lowercase UUID).
⚠️ Breaking changes
register()throwsInvalidArgumentExceptionwhen 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
✨ Features
/addons listlists the loaded add-ons, and/addons reloadloads theaddons/folder again without a restart
(permissionaddonsmanager.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()andAddonsManager::getFolderPath().
v2.0.1
Changed
- The plugin name is now
AddonsManagerinstead ofrefAddonsManager. The data folder moves with it, so rename
plugin_data/refAddonsManagertoplugin_data/AddonsManagerto keep existing settings, and update anydepend/softdependentries.
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.