AuthMe / AuthMeReloaded

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

If Sessions are enabled, until player session expiry, onJoin from commands.yml does not execute at all #2770

Open TheJoshue opened 9 months ago

TheJoshue commented 9 months ago

What behaviour is observed?

title explains it briefly

This is not a big issue nor i think it deserves some attention, i am just here to contribute and report it

if i have time i will try to investigate and fix this, i'm unsure when tho.

Expected behaviour

onJoin should always work?

To Reproduce

  1. Enable sessions in main config
  2. Set session expiry to 1 (minute)
  3. Go to commands.yml and create some example onJoin command like so:
    onJoin:
    welcome:
    command: 'msg %p Welcome back!'
    executor: CONSOLE
  4. Make sure server has applied all mentioned to be configured above, restart it or reload plugin or whatever to apply
  5. Join server
  6. You will be greeted with our defined welcome message (console will execute defined command correctly)
  7. Register/Login
  8. Now before 1 minute since you logged in passes out, join back on server
  9. You will see that there is no message we defined, but we should receive it
  10. Now leave server again and do not join until at least 1 minute passes since you logged in last time
  11. Join back in and you will see that you will be greeted with our defined welcome message correctly (and also need to re-login because your session is over)
  12. Done.

Plugin list

AuthMe, BungeeGuard, Vault

Server Implementation

BungeeCord

Database Implementation

MySQL

AuthMe Version

AuthMeReloaded v5.6.0-SNAPSHOT (build: 2614)

Error log (if applicable)

/

Configuration

config.yml is default, i just installed AuthMe on my fresh test server / this is commands.yml file tho - https://paste.gg/p/anonymous/1bd90a996d474a848584a67dff9a9f3d

HaHaWTH commented 9 months ago

Try onSessionLogin?