Skip to content

Allow custom output directory for downloaded plugins and builds.#32

Merged
NewAmazingPVP merged 2 commits intoNewAmazingPVP:mainfrom
TubYoub:customPaths
Oct 14, 2025
Merged

Allow custom output directory for downloaded plugins and builds.#32
NewAmazingPVP merged 2 commits intoNewAmazingPVP:mainfrom
TubYoub:customPaths

Conversation

@TubYoub
Copy link
Contributor

@TubYoub TubYoub commented Sep 25, 2025

Hi,
I was frustrated to always manually update my Geyser Extensions, so I added this small change to include the functionality to set a custom download path.

The way to add a custom download path is as follows:

<name>:<link> | <path>

MCXB: "https://github.com/MCXboxBroadcast/Broadcaster | plugins/Geyser-Velocity/extensions/"

To prevent users from going outside the server directory, the first "/" is removed from the path.

TubYoub and others added 2 commits September 25, 2025 23:19
Refactored sanitizeCustomPath in PluginDownloader and PluginUpdater to use java.nio path normalization and handle InvalidPathException. Added support for expanding '~' to the user's home directory. Updated ensureDir to use File.separator and improved directory creation logic.
@NewAmazingPVP
Copy link
Owner

@TubYoub Hello there,

Thank you so much for the PR! I have wanted to add this feature for a long time! I also believe it would be useful if users could use this feature to install plugins outside the server root, and I have maintained your path compatibility without the "/" but added absolute path support as well.

I will go ahead and merge this PR! Thank you again for the PR, and I apologize for the delay in merging.

@NewAmazingPVP NewAmazingPVP merged commit e0dbb2c into NewAmazingPVP:main Oct 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants