Remove all Auth plugins hooks #2

Merged
ham1255 merged 15 commits from dev/authRemoval into main 2021-06-16 17:18:33 +00:00
2 changed files with 12 additions and 4 deletions
Showing only changes of commit f5ad62856c - Show all commits

View File

@ -34,7 +34,7 @@ index e26b271..25f1ac2 100644
- registerHook();
+ // LimeLogin start
+ //registerHook();
+ // LimeLogin end
+ // LimeLogin stop
}
@Override
@ -57,8 +57,9 @@ index e26b271..25f1ac2 100644
} catch (ReflectiveOperationException ex) {
logger.error("Couldn't load the auth hook class", ex);
}
- }
+ } */
+ }
+ // LimeLogin end
public void sendPluginMessage(Server server, ChannelMessage message) {

View File

@ -65,6 +65,7 @@ index 410b1e4..0136f09 100644
+ // LimeLogin start
+ super(plugin.getCore());
+ // LimeLogin end
this.plugin = plugin;
this.preLoginEvent = preLoginEvent;
this.connection = connection;
@ -309,6 +310,7 @@ index ec3f924..90c9add 100644
+ // LimeLogin start
+ //private AuthPlugin<P> authPlugin;
+ // LimeLogin end
public FastLoginCore(T plugin) {
this.plugin = plugin;
}
@ -324,6 +326,8 @@ index ec3f924..90c9add 100644
+ */
+ // LimeLogin end
public RateLimiter getRateLimiter() {
return rateLimiter;
}
@ -516,6 +520,7 @@ index 5490673..dabe324 100644
- this.authHook = authHook;
this.floodgateHook = new FloodgateHook<>(core);
}
+ // LimeLogin end
+
@ -525,11 +530,13 @@ index 5490673..dabe324 100644
//end of Govindas comment
// LimeLogin end
- if (core.getConfig().get("autoRegister", false) && (authHook == null)) {
+ if (core.getConfig().get("autoRegister", false)) {
// LimeLogin start
requestPremiumLogin(source, profile, username, false); //Comment: always use false to fix an error XD
// LimeLogin end
--
2.32.0.windows.1