Skip to content

floodgatePrefixWorkaround set to true, not working on 1.19 (onAsyncPacket() error) #856

@SajmonOriginal

Description

@SajmonOriginal

What happened?

When the server is with GeyserMC and Floodgate plugins together with Fastlogin, which has floodgatePrefixWorkaround: true in the config, an error is printed in the console when the user logs in Java Edition the user is logged in fine, when the user logs in from Bedrock Edition, the same error appears in the console, but the user does not connect to the server with the error "Your name conflicts an existing premium Java account's name"

Bedrock connect:

image

Java connect:

image

I only saw this error when the FastLogin plugin was not updated to 1.19 and the plugin had compatibility problems with this version, so I think that somehow this workaround was forgotten when working on compatibility with 1.19.

Here is the mentioned error from the log:

[14:48:53 ERROR]: [FastLogin] Unhandled exception occurred in onAsyncPacket() for FastLogin com.comphenix.protocol.reflect.FieldAccessException: No field with type com.mojang.authlib.GameProfile exists in class PacketLoginInStart. at com.comphenix.protocol.reflect.StructureModifier.readInternal(StructureModifier.java:216) ~[ProtocolLib (11).jar:?] at com.comphenix.protocol.reflect.StructureModifier.read(StructureModifier.java:195) ~[ProtocolLib (11).jar:?] at com.github.games647.fastlogin.bukkit.listener.protocollib.ManualNameChange.onPacketReceiving(ManualNameChange.java:72) ~[FastLoginBukkit (11).jar:?] at com.comphenix.protocol.async.AsyncListenerHandler.processPacket(AsyncListenerHandler.java:642) ~[ProtocolLib (11).jar:?] at com.comphenix.protocol.async.AsyncListenerHandler.listenerLoop(AsyncListenerHandler.java:596) ~[ProtocolLib (11).jar:?] at com.comphenix.protocol.async.AsyncListenerHandler.access$200(AsyncListenerHandler.java:48) ~[ProtocolLib (11).jar:?] at com.comphenix.protocol.async.AsyncListenerHandler$2.run(AsyncListenerHandler.java:229) ~[ProtocolLib (11).jar:?] at com.comphenix.protocol.async.AsyncListenerHandler$3.run(AsyncListenerHandler.java:300) ~[ProtocolLib (11).jar:?] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.jar:git-Paper-58] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.jar:git-Paper-58] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] [14:48:53 INFO]: [FastLogin] Handling player SajmonOriginal [14:48:53 INFO]: [FastLogin] Bedrock Player SajmonOriginal's name conflicts an existing premium Java account's name [14:48:53 INFO]: [floodgate] Floodgate player logged in as SajmonOriginal disconnected [14:48:53 INFO]: [Geyser-Spigot] SajmonOriginal has disconnected from the Java server because of Your name conflicts an existing premium Java account's name [14:48:53 INFO]: /**.**.**.**:0 lost connection: Disconnected

What did you expect?

I'm trying to get Floodgate or offline auth on GeyserMC compatible with Fastlogin on Paper server. I've been looking around this repository variously and saw that there are some pull requests about this that have some recent activity, so I believe some compatibility with Floodgate is still in the works. Anyway, I tried to use the so-called floodgatePrefixWorkaround, which seemed to finally realize my dream that Bedrock users would not have to log into their Microsoft accounts every time they connect. Unfortunately Fastlogin doesn't support Floodgate prefixes (but I already found an issue for that here), so this was my last hope to enable this.

Steps to reproduce

Start Paper server on version 1.19 along with the latest dev builds of FastLogin, ProtocolLib, GeyserMC and FloodGate plugins. In Geyser config, change the auth-type: to offline or floodgate. In the FastLogin config, add floodgatePrefixWorkaround: true.

Plugin list

AuthMe, FastLogin, floodgate, Geyser-Spigot, ProtocolLib

Configuration file

https://www.toptal.com/developers/hastebin/ezedulajen.yaml

Server log

Server log when connecting from Bedrock Edition: [Paper server log [#RYnvduW] - mclo.gs](https://mclo.gs/RYnvduW)

Server log when connecting from Java Edition: [Paper server log [#Fgzlemx] - mclo.gs](https://mclo.gs/Fgzlemx)

Plugin version

FastLogin version 1.12-SNAPSHOT-8df5b11

Platform

Spigot

Relevance

  • I tried the latest build (build refers to development builds not necessary a release version)
  • I checked for existing tickets -
    If there are, please vote them with a thumps reaction and not create new ones

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions