AuthMe / AuthMeReloaded

The best authentication plugin for the Bukkit/Spigot API!
https://www.spigotmc.org/resources/authmereloaded.6269/
GNU General Public License v3.0
634 stars 514 forks source link

Double message on bungee auto login #1747

Open JohOply opened 5 years ago

JohOply commented 5 years ago

Before reporting an issue make sure you are running the latest build of the plugin and checked for duplicate issues!

What behaviour is observed:

When player changes server with bungeecord, auto-login displays messages twice Issue doesn't happen every time, but 3 times on 4 Issue doesn't happen when player logout/login

https://i.imgur.com/fh4shJq.png

What behaviour is expected:

Messages are displaying once time

Steps/models to reproduce:

/

Plugin list:

Authme ONLY

Environment description

Spigot 1.12.2 b1573i Bungeecord b1283 Mysql

AuthMe build number:

Spigot-side b2204 Bungee-side b113

This bug was already in version 2164 and 73, probably before too

Error Log:

No error, only login message displayed twice

[14:35:40 INFO]: JohOply[/xx.xx.xx.xx:xxxxx] logged in with entity id 15263 at ([world]90.75877274127899, 71.0, -298.6682480601861) [14:35:40 INFO]: [AuthMe] The user JohOply has been automatically logged in, as requested via plugin messaging. [14:35:40 INFO]: [AuthMe] JohOply logged in! [14:35:40 INFO]: [AuthMe] JohOply logged in!

Configuration:

Pastebin/Hastebin/Gist link of your config.yml file (remember to delete any sensitive data) https://pastebin.com/cB6uEitL

sgdc3 commented 5 years ago

@JohOply does it happen when sessions are disabled?

JohOply commented 5 years ago

No, it seems not

sgdc3 commented 5 years ago

it looks like the user is logged-in twice, by autologin and then session

JohOply commented 5 years ago

Maybe, plugins are too efficient haha

sgdc3 commented 5 years ago

@ljacqu hmm how can we fix this issue?

JohOply commented 5 years ago

Hi there Did you find a way to fix it? :)

I am alone to use this feature? :o

PaBox commented 2 months ago

I also have this issue, and it leads UTitleAuth to displaying titles when the hook is activated - so everytime somebody switches servers.

I did disable sessions, but for me I still get the double messages. Only way was to set an empty string, which shouldn't be the solution. Should I also disable forceSingleSession? Also not recommended with a big server... Because the session message is still triggered for me...

Is there any possibility the hooks don't fire at all or is that always the case?

Greetings, great plugin.