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

[REQUEST] execute a list of os commands after reset the world #52

Open
sakurawald opened this issue Aug 27, 2023 · 0 comments
Open

[REQUEST] execute a list of os commands after reset the world #52

sakurawald opened this issue Aug 27, 2023 · 0 comments
Assignees
Labels
Request New feature or request

Comments

@sakurawald
Copy link

sakurawald commented Aug 27, 2023

Most of server cores support per-world configs. (like paper or purpur)
You can config many important and useful world settings in paper-world.yml
See: https://docs.papermc.io/paper/reference/configuration
Paper will generate a file inside /server/resource_world/paper-world.yml

If the plugins support to execute os commands, then you can do many things to config the world more detail.
For example:

  1. You can create a file named "paper-world.yml" inside /server/template/paper-world.yml
_version: 28

spawn:
  keep-spawn-loaded: false
  1. You can config ResourceWorld to do so
execute-os-commands:
  - cp ./template/paper-world.yml ./resource-world

This feature is very useful, and can ve very flexible.

PS: If that's too hard to add this.
Then maybe you can add a feature named "ignore files" and don't delete the whole "resource_world" folder. Just enter the folder and recursive delete all the files and folders (and remember "ignore files")

@sakurawald sakurawald added the Request New feature or request label Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants