Skip to content

Conversation

@JRoy
Copy link
Member

@JRoy JRoy commented Sep 12, 2020

WIP PR for the new plugin life-cycle API.

See #4317 for a better description

@Proximyst Proximyst added the type: feature Request for a new Feature. label Oct 3, 2020
Comment on lines +21 to +27
+ * <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.
Copy link
Contributor

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("-", "_"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ 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...).

@kashike kashike removed the joshie-pr label Dec 20, 2020
@stale
Copy link

stale bot commented Feb 18, 2021

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.

@stale
Copy link

stale bot commented Feb 25, 2021

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.

@stale stale bot closed this Feb 25, 2021
@MiniDigger MiniDigger reopened this Feb 25, 2021
@stale stale bot removed the resolution: stale label Feb 25, 2021
@JRoy JRoy closed this Feb 25, 2021
@JRoy JRoy deleted the feature/plugin-cycle-api branch February 25, 2021 14:33
@JRoy JRoy restored the feature/plugin-cycle-api branch February 25, 2021 14:33
@JRoy JRoy reopened this Feb 25, 2021
@JRoy
Copy link
Member Author

JRoy commented Jul 29, 2022

being continued by @Owen1212055 in #8108

@JRoy JRoy closed this Jul 29, 2022
@JRoy JRoy deleted the feature/plugin-cycle-api branch July 29, 2022 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants