From bd79e20c6627faadad184bd2e6dbea31b35d32d0 Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Thu, 26 Jun 2025 21:17:20 +0200 Subject: [PATCH] [ci skip] PluginManager#getPlugin and PluginManager#isPluginEnabled are case-insensitive (#12723) --- paper-api/src/main/java/org/bukkit/plugin/PluginManager.java | 4 ++-- .../src/main/java/org/bukkit/plugin/SimplePluginManager.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java index 47153dee66..215accd4e0 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java @@ -29,7 +29,7 @@ public interface PluginManager extends io.papermc.paper.plugin.PermissionManager /** * Checks if the given plugin is loaded and returns it when applicable *

- * Please note that the name of the plugin is case-sensitive + * Please note that the name of the plugin is case-insensitive * * @param name Name of the plugin to check * @return Plugin if it exists, otherwise null @@ -48,7 +48,7 @@ public interface PluginManager extends io.papermc.paper.plugin.PermissionManager /** * Checks if the given plugin is enabled or not *

- * Please note that the name of the plugin is case-sensitive. + * Please note that the name of the plugin is case-insensitive. * * @param name Name of the plugin to check * @return true if the plugin is enabled, otherwise false diff --git a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java index 001465eeda..dfc2d76403 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -464,7 +464,7 @@ public final class SimplePluginManager implements PluginManager { /** * Checks if the given plugin is loaded and returns it when applicable *

- * Please note that the name of the plugin is case-sensitive + * Please note that the name of the plugin is case-insensitive * * @param name Name of the plugin to check * @return Plugin if it exists, otherwise null @@ -486,7 +486,7 @@ public final class SimplePluginManager implements PluginManager { /** * Checks if the given plugin is enabled or not *

- * Please note that the name of the plugin is case-sensitive. + * Please note that the name of the plugin is case-insensitive. * * @param name Name of the plugin to check * @return true if the plugin is enabled, otherwise false