Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Restart Addition to API #140

Open
PrimeStrat opened this issue Feb 21, 2025 · 2 comments
Open

Server Restart Addition to API #140

PrimeStrat opened this issue Feb 21, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@PrimeStrat
Copy link

Is your feature request related to a problem? Please describe.
The purpose of the feature is for a plugin I am developing that would include a command called "/reloadpacks" which would increment pack UUIDs, restart the server, and then use server transfer to relog the players back into the server similar to how solo worlds do it with development resource packs when using /reload all.

Describe the solution you'd like
An addition to the API to allow the server to perform a full server restart which would involve the server fully shutting down and then starting back up using the same directory.

Additional context
Essentially, if any resource pack changes were made, you would need to manually change every UUID in the manifest of every resource pack. In addition, the server requires a restart to use those changes. Players only redownload resource packs if no existing UUID is detected.

There are probably ways to force another server start but I'd like a cleaner solution if at all possible!

@PrimeStrat PrimeStrat added the enhancement New feature or request label Feb 21, 2025
@OmniacDev
Copy link

Just want to say this, vanilla /reload all does NOT increment pack UUIDs. Doing that is actually not great, since you lose dynamicProperties and other data that is directly linked to your pack's UUID.

You should instead increment the pack's version.

@PrimeStrat
Copy link
Author

PrimeStrat commented Feb 22, 2025

If the version increment does allow the client to redownload the pack then that would work better. Last I tried it, I had not had that happen. I know /reload all does not increment pack UUIDs, I was referring to what I wanted to make for a plugin command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants