From 96cdac13320ca06f300f8b4535c803fd65c50df6 Mon Sep 17 00:00:00 2001 From: games647 Date: Sat, 6 Jun 2020 18:32:08 +0200 Subject: [PATCH] Ignore proxied bedrock players (Fixes #328) --- README.md | 2 +- bungee/pom.xml | 13 ++++++++++++ .../fastlogin/bungee/FastLoginBungee.java | 10 ++++++--- .../bungee/listener/ConnectListener.java | 21 ++++++++++++++----- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 12076d7c..cc1125b2 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ So they don't need to enter passwords. This is also called auto login (auto-logi * No client modifications needed * Good performance by using async operations * Locale messages -* Import the database from similar plugins +* Support for Bedrock players proxied through FloodGate ## Issues diff --git a/bungee/pom.xml b/bungee/pom.xml index 4afbbfbe..3ec97733 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -60,6 +60,11 @@ codemc-repo https://repo.codemc.io/repository/maven-public/ + + + nukkitx-repo + https://repo.nukkitx.com/maven-snapshots/ + @@ -78,6 +83,14 @@ provided + + + org.geysermc + floodgate-bungee + 1.0-SNAPSHOT + provided + + me.vik1395 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 e46f9dc1..55b6ee8e 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 @@ -26,6 +26,7 @@ import net.md_5.bungee.api.connection.PendingConnection; import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.connection.Server; import net.md_5.bungee.api.plugin.Plugin; +import net.md_5.bungee.api.plugin.PluginManager; import net.md_5.bungee.api.scheduler.GroupedThreadFactory; import org.slf4j.Logger; @@ -53,9 +54,12 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin