mirror of
https://github.com/pelican-dev/plugins.git
synced 2026-05-09 00:08:54 +02:00
[PR #96] MC Modrinth: Implement mod/plugin management with update and uninstall capabilities #108
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/plugins#108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/plugins/pull/96
Author: @H1ghSyst3m
Created: 1/31/2026
Status: 🔄 Open
Base:
main← Head:featcomplete-mod-plugin-management📝 Commits (10+)
7a74e0aAdd mod/plugin update and uninstall features with metadata trackingeb2e0c3Remove unused download strings from language filesf2d3bb3Fix: Validate filenames and improve file save checks0b92108Fix: Add checks for Modrinth project type supporteef0dd2Remove unused Section import938ad6aImprove mod install/update rollback and cache handling57d5603Add installed mods view and handle unavailable mods2da4031Add optional author field to installed mod metadata657e972Use informal German and revert version7b62073Add uninstall success messages📊 Changes
7 files changed (+960 additions, -89 deletions)
View changed files
📝
minecraft-modrinth/README.md(+13 -8)📝
minecraft-modrinth/lang/de/strings.php(+28 -3)📝
minecraft-modrinth/lang/en/strings.php(+28 -3)📝
minecraft-modrinth/plugin.json(+2 -2)📝
minecraft-modrinth/src/Facades/MinecraftModrinth.php(+17 -0)📝
minecraft-modrinth/src/Filament/Server/Pages/MinecraftModrinthProjectPage.php(+582 -72)📝
minecraft-modrinth/src/Services/MinecraftModrinthService.php(+290 -1)📄 Description
Overview
This PR adds comprehensive mod lifecycle management to the Minecraft Modrinth plugin. Currently, users can only install mods but have no way to update or remove them through the interface. This creates a frustrating user experience where they need to manually manage files outside the plugin.
Changes
Core Functionality
I've implemented update and uninstall capabilities for both mods and plugins. When users view their installed items, they'll now see action buttons that allow them to update to the latest version or remove items entirely. Both operations include confirmation modals to prevent accidental actions.
New Installed View
A new Installed tab has been added to the header, allowing users to switch between browsing available mods and viewing their currently installed items directly within the interface.
Metadata File
To make updates and uninstalls possible, I introduced a metadata tracking system using
.modrinth-metadata.json. This file stores essential information about each installed mod (version, filename, installation date), which lets us determine when updates are available and ensures clean uninstallation.Localization & Documentation
I've added the necessary translation strings for English and German to support the new UI elements, and updated the README to document the new features.
Screenshots
Implementation Notes
The metadata file approach was chosen over database storage to keep the plugin lightweight and make the data easily portable with the mod directory. The file is updated on each install/uninstall operation and read when checking for available updates.
Tested
Version
Bumped to
1.1.0to reflect the new feature set.Fixes Issues
Closes #62
Summary by CodeRabbit
New Features
Documentation
Localization
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.