mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Fix errors
This commit is contained in:
@ -100,7 +100,7 @@ public class DelayedAuthHook implements Runnable {
|
|||||||
|
|
||||||
for (Class<? extends AuthPlugin<Player>> clazz : hooks) {
|
for (Class<? extends AuthPlugin<Player>> 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)
|
||||||
if (Bukkit.getPluginManager().isPluginEnabled(pluginName)) {
|
if (Bukkit.getPluginManager().isPluginEnabled(pluginName)) {
|
||||||
//check only for enabled plugins. A single plugin could be disabled by plugin managers
|
//check only for enabled plugins. A single plugin could be disabled by plugin managers
|
||||||
|
Reference in New Issue
Block a user