-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[WIP] New Plugin Life-cycle API #4319
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
Conversation
Spigot-API-Patches/0229-Add-Server-isStarting-Bukkit-isStarting-API.patch
Outdated
Show resolved
Hide resolved
Spigot-API-Patches/0229-Add-Server-isStarting-Bukkit-isStarting-API.patch
Outdated
Show resolved
Hide resolved
| + * <li>Reloads all configs | ||
| + * <li>Reloads server icon | ||
| + * <li>Reloads ban lists | ||
| + * <li>Reloads all plugins that which both their dependencies and themselves meet one the following: | ||
| + * <ul> | ||
| + * <li>Have the {@link org.bukkit.plugin.PluginReloadPolicy#ALWAYS ALWAYS} reload policy. | ||
| + * <li>Have the {@link org.bukkit.plugin.PluginReloadPolicy#SAME_HASH SAME_HASH} reload policy and the plugin's file is unmodified from startup. |
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.
cries in </li>
| + */ | ||
| + public static PluginReloadPolicy getByName(@NotNull String name) { | ||
| + try { | ||
| + return valueOf(name.toUpperCase(Locale.ENGLISH).replaceAll("[^A-Z-]", "").replace("-", "_")); |
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.
| + return valueOf(name.toUpperCase(Locale.ENGLISH).replaceAll("[^A-Z-]", "").replace("-", "_")); | |
| + return valueOf(name.toUpperCase(Locale.ENGLISH).replace("-", "_")); |
Don't correct the user; them entering e.g. 123 is not grounds for Paper to care as that's their fault. The replacing - -> _ is however alright as that's a very easy thing to fuck up (cough Bungee & depend/-s...).
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This issue has been automatically closed because it has not had activity in a long time. If the issue still applies to the most recent supported version, please open a new issue referencing this original issue. |
|
being continued by @Owen1212055 in #8108 |
WIP PR for the new plugin life-cycle API.
See #4317 for a better description