-
Notifications
You must be signed in to change notification settings - Fork 547
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
refactor config handling + added /sf reload #3908
Conversation
Your Pull Request was automatically labelled as: "🧹 Chores" |
Slimefun preview buildA Slimefun preview build is available for testing! https://preview-builds.walshy.dev/download/Slimefun/3908/d0b92569
|
Kudos, SonarCloud Quality Gate passed! |
@@ -14,6 +14,7 @@ | |||
import javax.annotation.Nullable; | |||
import javax.annotation.ParametersAreNonnullByDefault; | |||
|
|||
import io.github.bakedlibs.dough.config.Config; |
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.
Import order
@@ -6,6 +6,7 @@ | |||
import javax.annotation.Nonnull; | |||
import javax.annotation.ParametersAreNonnullByDefault; | |||
|
|||
import com.google.common.base.Preconditions; |
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.
import com.google.common.base.Preconditions; | |
import com.google.common.base.Preconditions; | |
@@ -10,6 +10,7 @@ | |||
import javax.annotation.Nullable; | |||
import javax.annotation.ParametersAreNonnullByDefault; | |||
|
|||
import io.github.bakedlibs.dough.config.Config; |
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.
Import order
Description
Supercedes #2822
This pull requests moves the config-related stuff from SlimefunRegistry to a dedicated Config Manager.
It also allows some basic reload functionality,, accessible via
/sf reload
(Many people requested this for a long time).Note that this is not fully finished though, so not all changes are supported and a lot will still require a restart.
Changes
Checklist
Nonnull
andNullable
annotations to my methods to indicate their behaviour for null values