related to main

This commit is contained in:
mohammed jasem alaajel 2021-06-16 18:38:57 +04:00
parent 80af642a40
commit ca35386871
2 changed files with 12 additions and 12 deletions

View File

@ -34,7 +34,7 @@ index e26b271..25f1ac2 100644
- registerHook();
+ // LimeLogin start
+ //registerHook();
+ // LimeLogin stop
+ // LimeLogin end
}
@Override
@ -59,7 +59,7 @@ index e26b271..25f1ac2 100644
}
- }
+ } */
+ // LimeLogin stop
+ // LimeLogin end
public void sendPluginMessage(Server server, ChannelMessage message) {
if (server != null) {

View File

@ -48,7 +48,7 @@ index db8f269..07df30a 100644
+ //Disabled...
+ //Runnable loginTask = new ForceLoginTask(plugin.getCore(), player, server, session);
+ //plugin.getScheduler().runAsync(loginTask);
+ // LimeLogin stop
+ // LimeLogin end
}
@EventHandler
@ -64,7 +64,7 @@ index 410b1e4..0136f09 100644
-
+ // LimeLogin start
+ super(plugin.getCore());
+ // LimeLogin stop
+ // LimeLogin end
this.plugin = plugin;
this.preLoginEvent = preLoginEvent;
this.connection = connection;
@ -308,7 +308,7 @@ index ec3f924..90c9add 100644
-
+ // LimeLogin start
+ //private AuthPlugin<P> authPlugin;
+ // LimeLogin stop
+ // LimeLogin end
public FastLoginCore(T plugin) {
this.plugin = plugin;
}
@ -322,7 +322,7 @@ index ec3f924..90c9add 100644
return authPlugin;
}
+ */
+ // LimeLogin stop
+ // LimeLogin end
public RateLimiter getRateLimiter() {
return rateLimiter;
@ -334,7 +334,7 @@ index ec3f924..90c9add 100644
this.authPlugin = authPlugin;
}
+ */
+ // LimeLogin stop
+ // LimeLogin end
public void saveDefaultFile(String fileName) {
Path dataFolder = plugin.getPluginFolder();
@ -444,7 +444,7 @@ index b417e64..0000000
- //storage.save(playerProfile);
- //end of Govindas comment
-
- // LimeLogin stop
- // LimeLogin end
- }
- } catch (Exception ex) {
- core.getPlugin().getLog().warn("ERROR ON FORCE LOGIN of {}", getName(player), ex);
@ -506,7 +506,7 @@ index 5490673..dabe324 100644
- protected final AuthPlugin<P> authHook;
+ // LimeLogin start
+ //protected final AuthPlugin<P> authHook;
+ // LimeLogin stop
+ // LimeLogin end
private final FloodgateHook<P, C, ?> floodgateHook;
- public JoinManagement(FastLoginCore<P, C, ?> core, AuthPlugin<P> authHook) {
@ -516,7 +516,7 @@ index 5490673..dabe324 100644
- this.authHook = authHook;
this.floodgateHook = new FloodgateHook<>(core);
}
+ // LimeLogin stop
+ // LimeLogin end
+
public void onLogin(String username, S source) {
@ -524,12 +524,12 @@ index 5490673..dabe324 100644
@@ -130,7 +133,7 @@ public abstract class JoinManagement<P extends C, C, S extends LoginSource> {
//end of Govindas comment
// LimeLogin stop
// 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 stop
// LimeLogin end
--
2.32.0.windows.1