Uh oh!
There was an error while loading. Please reload this page.
[WIP] New Plugin Life-cycle API - #4319
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| + * <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. |
| + */ | ||
| + 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.
| + 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. |
JRoy
commented
Jul 29, 2022
being continued by @Owen1212055 in #8108 |
WIP PR for the new plugin life-cycle API.
See #4317 for a better description