Skip to content

Commit 83a6cb4

Browse files
authored
Add log info and fix errors
1 parent fd045e9 commit 83a6cb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ private void registerHook() {
122122

123123
for (Class<? extends AuthPlugin<ProxiedPlayer>> clazz : hooks) {
124124
String pluginName = clazz.getSimpleName();
125-
pluginName = pluginName.substring(0, pluginName.length() - 4);
125+
pluginName = pluginName.substring(0, pluginName.length() - "Hook".length());
126126
//uses only member classes which uses AuthPlugin interface (skip interfaces)
127127
Plugin plugin = getProxy().getPluginManager().getPlugin(pluginName);
128128
if (plugin != null) {
129+
logger.info("Hooking into auth plugin: {}", pluginName);
129130
core.setAuthPluginHook(
130131
clazz.getDeclaredConstructor(FastLoginBungee.class).newInstance(this));
131132
}

0 commit comments

Comments
 (0)