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
Convert to configurate for paper.yml #7609
Conversation
|
I think this is very good idea My only issue is the per world config file in the world folder. is this not confusing for the admin? How will this work with #7594? This seems like it has pro of portable world. but if everything is one levelstem with vanilla this becomes very messy. here is my idea for better it is just idea. I think it work for the server admin and #7594 more. |
|
There are pros and cons to both approaches, we somewhat figured that config files in the worlds seemed to be the best solution, especially in terms of things like minigame servers which carry worlds around, etc, it's much easier for them if the world is bundled with the config the levelstem issue is complex, but, individual dimensions will still need their own level.dat, so it's not like everything is gonna be shared across stuff, just there are many complexities there as the entire systems both go against one another, data packs expect to be global state yet CB stuff expects some level of isolation that file structure would also have to look more akin to which is also somewhat ugly and doesn't really solve much vs keeping them with the world data |
|
it does not have to be like that, you can even use full namespace I think this general idea looks much better. but This is just my idea. it is your project. I like it! |
|
|
|
I mention this in my comment. even with replace with another char it is still to me more user friendly. but i respect whatever final decision. i just bringing more ideas hopefully. |
|
This is a good move providing everything migrates fully and automatically (as it seems to be so far) and the old paper.yml has a huge notice saying configs have moved to avoid confusion. Regarding location, I personally think something like |
33fd9b3
to
191a52a
Compare
|
Updated for latest paper config changes |
c289312
to
8cb05eb
Compare
8cb05eb
to
f215f05
Compare
f215f05
to
e98703f
Compare
| + private static final Map<String, Command> COMMANDS = new HashMap<>(); | ||
| + private static boolean metricsStarted = false; | ||
| + static { | ||
| + COMMANDS.put("paper", new PaperCommand("paper")); | ||
| + COMMANDS.put("mspt", new MSPTCommand("mspt")); | ||
| + } | ||
| + | ||
| + public static void registerCommands(final MinecraftServer server) { | ||
| + COMMANDS.forEach((s, command) -> { | ||
| + server.server.getCommandMap().register(s, "Paper", command); | ||
| + }); | ||
| + | ||
| + if (!metricsStarted) { | ||
| + Metrics.PaperMetrics.startMetrics(); | ||
| + metricsStarted = true; | ||
| + } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move commands and registration somewhere else
e98703f
to
35e21c3
Compare
|
Are there plans to/would it be possible to also move bukkit.yml and spigot.yml into |
|
atm, no; There is some plans to merge them all into a single file post hardfork |
|
Doesn't that basically defeat the point of having a config folder?
Also doesn't say much sadly, a hard fork has always been this nebulous thing in the future |
It leaves open the opportunity to have additional files if the need arises. Like what if there is a new config thing that ends up being super big. It might warrant having its own file. If we already have a directory, it makes that super easy. Also we already have 2 files, the world defaults and the global. So those are best not in the root of the server |


Key Points
GlobalConfigurationandWorldConfigurationclasses should only ever be modified inside one patch.New directory structure
TODO
@Settingto all options.config/legacy-backup/paper.yml)