samolego / SimpleAuth

Simple authentication mod for Fabric or Forge servers.
https://modrinth.com/mod/SimpleAuth
MIT License
39 stars 14 forks source link

[BUG] [Fabric] Error when trying to connect to mixed server with offline client. #61

Closed iMahco closed 3 years ago

iMahco commented 3 years ago

Mod Loader

Versions

Describe the bug While using an offline-client, attempting to connect to a server with the online-mode set to true disconnects the client and gives an error in console.

To Reproduce

  1. Make "premiumAutologin": true in config
  2. Set online-mode=true in server properties
  3. Connect to said server with offline client.

Expected behavior Mixed mode should activate yes? Or perhaps i'm misunderstanding what it means!

Additional context Other players that are using validated-clients are absolutely fine and can play; also worth mentioning the name isn't in use by mojang servers. Console: https://imgur.com/R9gGczS

samolego commented 3 years ago

Hi, please copy & paste the log, don't use image.

iMahco commented 3 years ago

[22:32:38] [VoiceChatServerThread/INFO]: Server started at port 24454 [22:34:09] [Server thread/INFO]: UsernameTaken33[/redacted:51361] logged in with entity id 595 at (148.5, 68.0, 227.5) [22:34:09] [Server thread/INFO]: UsernameTaken33 joined the game [22:34:09] [Server thread/INFO]: Sent secret to UsernameTaken33 [22:34:09] [Server thread/WARN]: Failed to handle packet for /redacted:51361 java.lang.NullPointerException: null at net.minecraft.class_2960.method_12830(class_2960.java:68) ~[intermediary-server.jar:?] at net.minecraft.class_2960.<init>(class_2960.java:46) ~[intermediary-server.jar:?] at net.minecraft.class_3222.hidePosition(class_3222.java:6656) ~[intermediary-server.jar:?] at net.minecraft.class_3222.setAuthenticated(class_3222.java:6716) ~[intermediary-server.jar:?] at org.samo_lego.simpleauth.event.AuthEventHandler.onPlayerJoin(AuthEventHandler.java:93) ~[simpleauth-1.7.7-fabric.jar:?] at net.minecraft.class_3324.handler$zjo005$onPlayerConnect(class_3324.java:3970) ~[intermediary-server.jar:?] at net.minecraft.class_3324.method_14570(class_3324.java:273) ~[intermediary-server.jar:?] at net.minecraft.class_3248.method_14384(class_3248.java:113) ~[intermediary-server.jar:?] at net.minecraft.class_3248.redirect$zkp000$handlePlayerJoin(class_3248.java:1062) ~[intermediary-server.jar:?] at net.minecraft.class_3248.method_18785(class_3248.java:65) ~[intermediary-server.jar:?] at net.minecraft.class_2535.method_10754(class_2535.java:228) ~[intermediary-server.jar:?] at net.minecraft.class_3242.method_14357(class_3242.java:173) ~[intermediary-server.jar:?] at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:882) ~[intermediary-server.jar:?] at net.minecraft.class_3176.method_3813(class_3176.java:312) ~[intermediary-server.jar:?] at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:811) ~[intermediary-server.jar:?] at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:670) ~[intermediary-server.jar:?] at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[intermediary-server.jar:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282] [22:34:11] [Server thread/INFO]: UsernameTaken33 lost connection: Internal server error [22:34:11] [Server thread/INFO]: UsernameTaken33 left the game [22:34:11] [Server thread/INFO]: Disconnecting client UsernameTaken33 2021-03-23-7.log

samolego commented 3 years ago

Set your spawn dimension to sth. other than null. You can use command /auth setSpawn to achieve it.

samolego commented 3 years ago

See wiki for more info.