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

View File

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