FastLogin icon indicating copy to clipboard operation
FastLogin copied to clipboard

FastLogin won't start with latest version of Geyser

Open deiphiz opened this issue 3 years ago • 30 comments

What happened?

Running FastLogin build #1159 and any GeyserMC Spigot build above #1189 causes FastLogin to run into a NoSuchMethodError error and the plugin will refuse to start. With GeyserMC disabled, FastLogin will still start as normal.

This error in particular seems to be caused by Geyser renaming their session.auth.AuthType class into api.network.AuthType. The change looks to be in part of their big API changes indicated here: https://github.com/GeyserMC/Geyser/pull/3267.

For reference, this is the Jenkins link for the Geyser build that started the issue: https://ci.opencollab.dev/job/GeyserMC/job/Geyser/job/master/1189/

What did you expect?

The plugin should start smoothly along with GeyserMC upon server startup

Steps to reproduce

Start server with FastLogin, ProtocolLib, and any GeyserMC build above #1189

Plugin list

AuthMe, FastLogin, floodgate, Geyser-Spigot, ProtocolLib

Configuration file

https://gist.github.com/deiphiz/7318f24a14c369333804a6a153daa88e

Server log

[21:43:36 ERROR]: Error occurred while enabling FastLogin v1.12-SNAPSHOT-7425df8 (Is it up to date?)
java.lang.NoSuchMethodError: 'org.geysermc.geyser.session.auth.AuthType org.geysermc.geyser.configuration.GeyserConfiguration$IRemoteConfiguration.getAuthType()'
        at com.github.games647.fastlogin.core.hooks.bedrock.GeyserService.<init>(GeyserService.java:47) ~[FastLoginBukkit.jar:?]
        at com.github.games647.fastlogin.bukkit.FastLoginBukkit.initializeFloodgate(FastLoginBukkit.java:155) ~[FastLoginBukkit.jar:?]
        at com.github.games647.fastlogin.bukkit.FastLoginBukkit.onEnable(FastLoginBukkit.java:101) ~[FastLoginBukkit.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:548) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:596) ~[purpur-1.19.2.jar:git-Purpur-1774]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:510) ~[purpur-1.19.2.jar:git-Purpur-1774]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:641) ~[purpur-1.19.2.jar:git-Purpur-1774]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:427) ~[purpur-1.19.2.jar:git-Purpur-1774]        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:343) ~[purpur-1.19.2.jar:git-Purpur-1774]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1142) ~[purpur-1.19.2.jar:git-Purpur-1774]
        at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:310) ~[purpur-1.19.2.jar:git-Purpur-1774]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
[21:43:36 INFO]: [FastLogin] Disabling FastLogin v1.12-SNAPSHOT-7425df8
[21:43:36 INFO]: [FastLogin] Safely shutting down scheduler. This could take up to one minute.

Plugin version

1.12-SNAPSHOT-7425df8

Platform

Spigot

Relevance

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

deiphiz avatar Sep 21 '22 04:09 deiphiz

Duplicate of https://github.com/games647/FastLogin/issues/871

Smart123s avatar Sep 21 '22 06:09 Smart123s

image

TheDiego845 avatar Sep 26 '22 17:09 TheDiego845

image

Did you update Geyser?

Smart123s avatar Sep 26 '22 17:09 Smart123s

Yes now image

TheDiego845 avatar Sep 26 '22 17:09 TheDiego845

Which ProtocolLib version do you have? Seems like it's 4.x And what MC version are you on? Also https://github.com/games647/FastLogin/issues/881 might be useful.

Smart123s avatar Sep 26 '22 17:09 Smart123s

1.17.1 Paper and 4.8.0

TheDiego845 avatar Sep 26 '22 17:09 TheDiego845

image

TheDiego845 avatar Sep 26 '22 17:09 TheDiego845

Same problem with build 1079

TheDiego845 avatar Sep 26 '22 18:09 TheDiego845

Same problem with build 1079

FastLogin build 1079 is only compatible with Geyser build 1188 (and older), ProtocolLib 4.8.0 and MC version 1.18.2 (or older).

Smart123s avatar Sep 26 '22 19:09 Smart123s

So no more than 1.19.30 people will be able to enter my bedrock server?

TheDiego845 avatar Sep 26 '22 19:09 TheDiego845

unknown

infinite1945 avatar Sep 26 '22 19:09 infinite1945

I've backported the changes from https://github.com/games647/FastLogin/pull/923 on top of 41890679ed9c4d78664608ee5e115efb97d25371 (build 1079).

Could you try the result? FastLoginBukkit-31bc57c.zip (source: https://github.com/Smart123s/FastLogin/commit/31bc57c8f2f217b1ec3a156c616614ff6eeb6b87)

EDIT: use this with ProtocolLib 4.8.0 and MC version 1.18.2 (or older), and latest Geyser.

Smart123s avatar Sep 26 '22 19:09 Smart123s

Ok i am going to test it

TheDiego845 avatar Sep 26 '22 20:09 TheDiego845

WORKS PERFECT. THANKS YOU

TheDiego845 avatar Sep 26 '22 20:09 TheDiego845

It's working now , thanks for your help @Smart123s i hope you the best ; )

infinite1945 avatar Sep 26 '22 20:09 infinite1945

@Smart123s Im using Minecraft 1.19 and don't work, any solution? Im using ProtocolLib version 4.8.0 and Last of Geyser

spartamc avatar Oct 02 '22 14:10 spartamc

@spartamc for MC 1.19 you need to use ProtocolLib 5.0.

Smart123s avatar Oct 02 '22 15:10 Smart123s

@Smart123s If I have now noticed that when using version 4.8.0 it only gives errors, I am with version 5.0 but it does not work either. And I have downloaded the zip that you have passed your

spartamc avatar Oct 02 '22 15:10 spartamc

@spartamc the zip is for ProtocolLib 4.8 which is needed for MC version 1.18 or earlier. With MC 1.19 you can use ProtocolLib 5.0 with latest FastLogin and latest Geyser.

Smart123s avatar Oct 02 '22 15:10 Smart123s

@Smart123s I've tried but it hasn't worked for me. FastLogin's latest version is #1163 isn't it?

spartamc avatar Oct 02 '22 15:10 spartamc

Yes it is. Could you please double check if you have the appropriate versions of Geyser, ProtocolLib and FastLogin? If it still doesn't work, open a new issue with server logs.

Smart123s avatar Oct 02 '22 15:10 Smart123s

@Smart123s im using: ProtocolLib version 5.0.0 FastLogin #1163 And Geyser image

spartamc avatar Oct 02 '22 16:10 spartamc

@spartamc could you post server logs?

Smart123s avatar Oct 02 '22 16:10 Smart123s

@Smart123s I don't understand why it works now, I think it was because I used the zip for the FastLogin and I wasn't using the latest version when I was doing tests. Sorry for wasting your time and thank you very much.

spartamc avatar Oct 02 '22 16:10 spartamc

@spartamc it's ok, I'm glad it works now 🎉

Smart123s avatar Oct 02 '22 16:10 Smart123s

@Smart123s I have another question that is not related to this but it is normal that sometimes the plugin changes the UUID to some players?

spartamc avatar Oct 02 '22 16:10 spartamc

@spartamc you can check premiumuuid in config.yml. also, does it happen for Java or Bedrock players?

Smart123s avatar Oct 02 '22 16:10 Smart123s

@Smart123s That option I have disabled, it has only happened to me with java accounts, that of a friend and mine for now. I didn't take much thought out until I realized that when the UUID changes it loses the money.

spartamc avatar Oct 02 '22 16:10 spartamc

Same issue 1.19.3, latest geyser, fast login, protocollib

jondycz avatar Dec 22 '22 14:12 jondycz

@jondycz Couldn't reproduce the issue. Tested on

Client:

  • Bedrock 1.19.51 (Windows 11)
  • Java 1.19.3

Server

  • https://github.com/PaperMC/Paper/commit/048ee5872d791df0a9aad856723958c8dc602e48
  • https://github.com/GeyserMC/Geyser/commit/03390b99e8240dc96a12414a016812b5e34de4dd
  • games647/FastLogin@https://github.com/games647/FastLogin/commit/cb5598f2f46923b887faf1b39263254d2c42a015
  • https://github.com/GeyserMC/Floodgate/commit/4f361120d1d6dfe878f725ee3e91505583e5b94e
  • https://github.com/dmulloy2/ProtocolLib/commit/9d183e85d7cb6c076fcd9bc39192a3f2df7145ad

Smart123s avatar Dec 23 '22 10:12 Smart123s