2021-06-14 22:30:29 +00:00
|
|
|
From d85a4cd57426f484fa46c9149dd9ace7ebc77170 Mon Sep 17 00:00:00 2001
|
|
|
|
From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com>
|
|
|
|
Date: Tue, 15 Jun 2021 02:09:53 +0400
|
|
|
|
Subject: [PATCH] removed hooks and commented them out
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java b/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java
|
|
|
|
index e26b271..25f1ac2 100644
|
|
|
|
--- a/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java
|
|
|
|
+++ b/bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java
|
|
|
|
@@ -25,9 +25,6 @@
|
|
|
|
*/
|
|
|
|
package com.github.games647.fastlogin.bungee;
|
|
|
|
|
|
|
|
-import com.github.games647.fastlogin.bungee.hook.BungeeAuthHook;
|
|
|
|
-import com.github.games647.fastlogin.bungee.hook.BungeeCordAuthenticatorBungeeHook;
|
|
|
|
-import com.github.games647.fastlogin.bungee.hook.SodionAuthHook;
|
|
|
|
import com.github.games647.fastlogin.bungee.listener.ConnectListener;
|
|
|
|
import com.github.games647.fastlogin.bungee.listener.PluginMessageListener;
|
|
|
|
import com.github.games647.fastlogin.core.AsyncScheduler;
|
|
|
|
@@ -50,7 +47,6 @@ import java.util.List;
|
|
|
|
import java.util.concurrent.ConcurrentMap;
|
|
|
|
import java.util.concurrent.ThreadFactory;
|
|
|
|
|
|
|
|
-import net.md_5.bungee.BungeeServerInfo;
|
|
|
|
import net.md_5.bungee.api.CommandSender;
|
|
|
|
import net.md_5.bungee.api.chat.TextComponent;
|
|
|
|
import net.md_5.bungee.api.connection.PendingConnection;
|
|
|
|
@@ -102,8 +98,9 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSen
|
|
|
|
//this is required to listen to incoming messages from the server
|
|
|
|
getProxy().registerChannel(NamespaceKey.getCombined(getName(), ChangePremiumMessage.CHANGE_CHANNEL));
|
|
|
|
getProxy().registerChannel(NamespaceKey.getCombined(getName(), SuccessMessage.SUCCESS_CHANNEL));
|
|
|
|
-
|
|
|
|
- registerHook();
|
|
|
|
+ // LimeLogin start
|
|
|
|
+ //registerHook();
|
2021-06-16 14:38:57 +00:00
|
|
|
+ // LimeLogin end
|
2021-06-14 22:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@@ -121,10 +118,11 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSen
|
|
|
|
return session;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // LimeLogin start
|
|
|
|
+ /* Author: Ham1255 !!! removed unwanted auth hooks now! !!!
|
|
|
|
private void registerHook() {
|
|
|
|
- try {
|
|
|
|
- List<Class<? extends AuthPlugin<ProxiedPlayer>>> hooks = Arrays.asList(
|
|
|
|
- BungeeAuthHook.class, BungeeCordAuthenticatorBungeeHook.class, SodionAuthHook.class);
|
|
|
|
+ try {
|
|
|
|
+ List<Class<? extends AuthPlugin<ProxiedPlayer>>> hooks = Arrays.asList();
|
|
|
|
|
|
|
|
for (Class<? extends AuthPlugin<ProxiedPlayer>> clazz : hooks) {
|
|
|
|
String pluginName = clazz.getSimpleName();
|
|
|
|
@@ -141,7 +139,8 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSen
|
|
|
|
} catch (ReflectiveOperationException ex) {
|
|
|
|
logger.error("Couldn't load the auth hook class", ex);
|
|
|
|
}
|
2021-06-16 14:38:57 +00:00
|
|
|
<<<<<<< HEAD
|
2021-06-14 22:30:29 +00:00
|
|
|
|
|
|
|
+ }
|
|
|
|
|
2021-06-16 14:38:57 +00:00
|
|
|
=======
|
|
|
|
- }
|
|
|
|
+ } */
|
|
|
|
>>>>>>> 654e137 (related to main)
|
2021-06-16 14:38:57 +00:00
|
|
|
+ // LimeLogin end
|
2021-06-14 22:30:29 +00:00
|
|
|
|
|
|
|
public void sendPluginMessage(Server server, ChannelMessage message) {
|
|
|
|
if (server != null) {
|
|
|
|
--
|
|
|
|
2.32.0.windows.1
|
|
|
|
|