Dablakbandit / always-online

GNU General Public License v3.0
14 stars 13 forks source link

Alwaysonline thinks Mojang servers are down, but they are not #22

Closed MarvinKlar closed 7 months ago

MarvinKlar commented 7 months ago

Today around 12 o clock, Alwaysonline was switching to "Offline"-mode (as if the Mojang servers were down), but the Mojang Authentication servers were still online.

Also, when I disabled AlwaysOnline, the plugin still denied players to connect!

See attached log file:

# I manually switched to "online mode"
12:00:24 [INFO] CONSOLE executed command: /alwaysonline toggle
12:00:24 [INFO] §6Mojang offline mode is now §cdisabled§6!
12:00:24 [INFO] §6AlwaysOnline will now treat the mojang servers as being online.
# Alwaysonline automatically switched back to offline mode
12:00:25 [INFO] [AlwaysOnline] Mojang servers appear to be offline. Enabling mojang offline mode...
12:00:25 [INFO] §a[Info]§7 Die Mojang Server sind nicht erreichbar!
12:00:26 [INFO] [/XXXXXXXXXX:48058] <-> InitialHandler has connected
# And is denying players to connect!!
12:00:26 [INFO] [AlwaysOnline] Denied _Dovydas from logging in cause their ip [YYYYYYYYYY] does not match their last ip!
12:00:29 [INFO] [_Dovydas,/XXXXXXXXXX:48088] <-> InitialHandler has connected
12:00:29 [INFO] [AlwaysOnline] Denied _Dovydas from logging in cause their ip [YYYYYYYYYY] does not match their last ip!
# I tried to disable the plugin
12:01:22 [INFO] CONSOLE executed command: /alwaysonline disable
12:01:22 [INFO] §6AlwaysOnline has been disabled! AlwaysOnline will no longer check to see if the session server is offline.
12:01:30 [INFO] [Bibi_Blocksberg_] -> UpstreamBridge has disconnected
12:01:30 [INFO] [Bibi_Blocksberg_] <-> DownstreamBridge <-> [test] has disconnected
12:01:33 [INFO] [/ZZZZZZZZZZZ:61673] <-> InitialHandler has connected
12:01:33 [INFO] [AlwaysOnline] Skipping session login for player Bibi_Blocksberg_ [Connected ip: ZZZZZZZZZZZ, Last ip: ZZZZZZZZZZZ]!
12:01:38 [INFO] [/ZZZZZZZZZZZ:61679] <-> InitialHandler has connected
12:01:38 [INFO] [AlwaysOnline] Skipping session login for player Bibi_Blocksberg_ [Connected ip: ZZZZZZZZZZZ, Last ip: ZZZZZZZZZZZ]!
12:01:43 [INFO] [/XXXXXXXXXX:49433] <-> InitialHandler has connected
# But AlwaysOnline is still denying players to connect!!!
12:01:43 [INFO] [AlwaysOnline] Denied _Dovydas from logging in cause their ip [YYYYYYYYYY] does not match their last ip!
TechnicallyCoded commented 7 months ago

Same issue here (However, in my case, I manually toggled AlwaysOnline into online mode before disabling the plugin's server checker. Players are able to join once again.)

Dablakbandit commented 7 months ago

Download latest

MarvinKlar commented 7 months ago

Will this fix the two mentioned bugs? I am using version 6.1.5

Dablakbandit commented 7 months ago

Mojang disabled the endpoint the plugin used to use so the old version will no longer work.

MarvinKlar commented 7 months ago

Thank you for the explanation. I'll update then. Is there a way to receive a notification, on such a breaking change?

TechnicallyCoded commented 7 months ago

@MarvinKlar It would be up to Mojang to correctly announce API endpoint changes. I am sure @Dablakbandit had no idea Mojang would break the API and only found out once they started getting spammed with requests to fix the plugin.

Which btw, thank you for updating the plugin so fast :)