forked from TuxCoding/FastLogin
Fix anti bot reading the correct values
This commit is contained in:
@ -100,7 +100,7 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSen
|
|||||||
//events
|
//events
|
||||||
PluginManager pluginManager = getProxy().getPluginManager();
|
PluginManager pluginManager = getProxy().getPluginManager();
|
||||||
|
|
||||||
ConnectListener connectListener = new ConnectListener(this, core.getRateLimiter());
|
ConnectListener connectListener = new ConnectListener(this, core.getAntiBot());
|
||||||
pluginManager.registerListener(this, connectListener);
|
pluginManager.registerListener(this, connectListener);
|
||||||
pluginManager.registerListener(this, new PluginMessageListener(this));
|
pluginManager.registerListener(this, new PluginMessageListener(this));
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ import com.github.games647.fastlogin.bungee.FastLoginBungee;
|
|||||||
import com.github.games647.fastlogin.bungee.task.AsyncPremiumCheck;
|
import com.github.games647.fastlogin.bungee.task.AsyncPremiumCheck;
|
||||||
import com.github.games647.fastlogin.bungee.task.FloodgateAuthTask;
|
import com.github.games647.fastlogin.bungee.task.FloodgateAuthTask;
|
||||||
import com.github.games647.fastlogin.bungee.task.ForceLoginTask;
|
import com.github.games647.fastlogin.bungee.task.ForceLoginTask;
|
||||||
import com.github.games647.fastlogin.core.RateLimiter;
|
|
||||||
import com.github.games647.fastlogin.core.StoredProfile;
|
import com.github.games647.fastlogin.core.StoredProfile;
|
||||||
|
import com.github.games647.fastlogin.core.antibot.RateLimiter;
|
||||||
import com.github.games647.fastlogin.core.hooks.bedrock.FloodgateService;
|
import com.github.games647.fastlogin.core.hooks.bedrock.FloodgateService;
|
||||||
import com.github.games647.fastlogin.core.shared.LoginSession;
|
import com.github.games647.fastlogin.core.shared.LoginSession;
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
||||||
|
@ -151,8 +151,8 @@ public class FastLoginCore<P extends C, C, T extends PlatformPlugin<C>> {
|
|||||||
return () -> true;
|
return () -> true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int maxCon = botSection.getInt("anti-bot.connections", 200);
|
int maxCon = botSection.getInt("connections", 200);
|
||||||
long expireTime = botSection.getLong("anti-bot.expire", 5) * 60 * 1_000L;
|
long expireTime = botSection.getLong("expire", 5) * 60 * 1_000L;
|
||||||
if (expireTime > MAX_EXPIRE_RATE) {
|
if (expireTime > MAX_EXPIRE_RATE) {
|
||||||
expireTime = MAX_EXPIRE_RATE;
|
expireTime = MAX_EXPIRE_RATE;
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ public class FastLoginVelocity implements PlatformPlugin<CommandSource> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
server.getEventManager().register(this, new ConnectListener(this, core.getRateLimiter()));
|
server.getEventManager().register(this, new ConnectListener(this, core.getAntiBot()));
|
||||||
server.getEventManager().register(this, new PluginMessageListener(this));
|
server.getEventManager().register(this, new PluginMessageListener(this));
|
||||||
server.getChannelRegistrar().register(MinecraftChannelIdentifier.create(getName(), ChangePremiumMessage.CHANGE_CHANNEL));
|
server.getChannelRegistrar().register(MinecraftChannelIdentifier.create(getName(), ChangePremiumMessage.CHANGE_CHANNEL));
|
||||||
server.getChannelRegistrar().register(MinecraftChannelIdentifier.create(getName(), SuccessMessage.SUCCESS_CHANNEL));
|
server.getChannelRegistrar().register(MinecraftChannelIdentifier.create(getName(), SuccessMessage.SUCCESS_CHANNEL));
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
package com.github.games647.fastlogin.velocity.listener;
|
package com.github.games647.fastlogin.velocity.listener;
|
||||||
|
|
||||||
import com.github.games647.craftapi.UUIDAdapter;
|
import com.github.games647.craftapi.UUIDAdapter;
|
||||||
import com.github.games647.fastlogin.core.RateLimiter;
|
|
||||||
import com.github.games647.fastlogin.core.StoredProfile;
|
import com.github.games647.fastlogin.core.StoredProfile;
|
||||||
|
import com.github.games647.fastlogin.core.antibot.RateLimiter;
|
||||||
import com.github.games647.fastlogin.core.shared.LoginSession;
|
import com.github.games647.fastlogin.core.shared.LoginSession;
|
||||||
import com.github.games647.fastlogin.velocity.FastLoginVelocity;
|
import com.github.games647.fastlogin.velocity.FastLoginVelocity;
|
||||||
import com.github.games647.fastlogin.velocity.VelocityLoginSession;
|
import com.github.games647.fastlogin.velocity.VelocityLoginSession;
|
||||||
|
Reference in New Issue
Block a user