mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Add log info and fix errors
This commit is contained in:
@ -122,10 +122,11 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSen
|
|||||||
|
|
||||||
for (Class<? extends AuthPlugin<ProxiedPlayer>> clazz : hooks) {
|
for (Class<? extends AuthPlugin<ProxiedPlayer>> clazz : hooks) {
|
||||||
String pluginName = clazz.getSimpleName();
|
String pluginName = clazz.getSimpleName();
|
||||||
pluginName = pluginName.substring(0, pluginName.length() - 4);
|
pluginName = pluginName.substring(0, pluginName.length() - "Hook".length());
|
||||||
//uses only member classes which uses AuthPlugin interface (skip interfaces)
|
//uses only member classes which uses AuthPlugin interface (skip interfaces)
|
||||||
Plugin plugin = getProxy().getPluginManager().getPlugin(pluginName);
|
Plugin plugin = getProxy().getPluginManager().getPlugin(pluginName);
|
||||||
if (plugin != null) {
|
if (plugin != null) {
|
||||||
|
logger.info("Hooking into auth plugin: {}", pluginName);
|
||||||
core.setAuthPluginHook(
|
core.setAuthPluginHook(
|
||||||
clazz.getDeclaredConstructor(FastLoginBungee.class).newInstance(this));
|
clazz.getDeclaredConstructor(FastLoginBungee.class).newInstance(this));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user