File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
bungee/src/main/java/com/github/games647/fastlogin/bungee Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments