We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a6cb4 commit ab1d3deCopy full SHA for ab1d3de
bukkit/src/main/java/com/github/games647/fastlogin/bukkit/task/DelayedAuthHook.java
@@ -100,7 +100,7 @@ private AuthPlugin<Player> getAuthHook() {
100
101
for (Class<? extends AuthPlugin<Player>> clazz : hooks) {
102
String pluginName = clazz.getSimpleName();
103
- pluginName = pluginName.substring(0, pluginName.length() - 4);
+ pluginName = pluginName.substring(0, pluginName.length() - "Hook".length());
104
//uses only member classes which uses AuthPlugin interface (skip interfaces)
105
if (Bukkit.getPluginManager().isPluginEnabled(pluginName)) {
106
//check only for enabled plugins. A single plugin could be disabled by plugin managers
0 commit comments