mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
[ci skip] PluginManager#getPlugin and PluginManager#isPluginEnabled are case-insensitive (#12723)
This commit is contained in:
@@ -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
|
* Checks if the given plugin is loaded and returns it when applicable
|
||||||
* <p>
|
* <p>
|
||||||
* 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
|
* @param name Name of the plugin to check
|
||||||
* @return Plugin if it exists, otherwise null
|
* @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
|
* Checks if the given plugin is enabled or not
|
||||||
* <p>
|
* <p>
|
||||||
* 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
|
* @param name Name of the plugin to check
|
||||||
* @return true if the plugin is enabled, otherwise false
|
* @return true if the plugin is enabled, otherwise false
|
||||||
|
@@ -464,7 +464,7 @@ public final class SimplePluginManager implements PluginManager {
|
|||||||
/**
|
/**
|
||||||
* Checks if the given plugin is loaded and returns it when applicable
|
* Checks if the given plugin is loaded and returns it when applicable
|
||||||
* <p>
|
* <p>
|
||||||
* 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
|
* @param name Name of the plugin to check
|
||||||
* @return Plugin if it exists, otherwise null
|
* @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
|
* Checks if the given plugin is enabled or not
|
||||||
* <p>
|
* <p>
|
||||||
* 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
|
* @param name Name of the plugin to check
|
||||||
* @return true if the plugin is enabled, otherwise false
|
* @return true if the plugin is enabled, otherwise false
|
||||||
|
Reference in New Issue
Block a user