JorelAli / CommandAPI

A Bukkit/Spigot API for the command UI introduced in Minecraft 1.13
https://commandapi.jorel.dev
MIT License
504 stars 60 forks source link

Add an option to disable datapack reloading #552

Closed NotroDev closed 2 months ago

NotroDev commented 2 months ago

Description

It would be really helpful if there was a way to disable datapack reloading. Currently, CommandAPI reloads datapacks every time the server starts, and for my server, this process takes around 10 seconds, even though I don't use datapacks or anything related to them.

Expected code

No response

Extra details

No response

JorelAli commented 2 months ago

Implemented for 9.4.1, due to release later today.

JorelAli commented 2 months ago

Implemented in 9.4.1. This can now be configured in the CommandAPI's config.yml file by setting skip-initial-datapack-reload: true. More info about this can be found in the CommandAPI's documentation here

NotroDev commented 2 months ago

Hey @JorelAli, I don't know if it's possible to contribute to the docs, so I'm writing here: docs

I think it should be true 😄

JorelAli commented 2 months ago

Whoops! Contributing to the documentation is possible, but updating the published documentation isn't something we can do very quickly or easily. I've made a commit that fixes this, but this change won't be propagated into the main documentation until the next release.

(We do have some live documentation which includes the current state of development and we may consider using as our main documentation on our website in the future. I've fixed this there for now)