AuthMe Reloaded

AuthMe Reloaded

3M Downloads

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

TheJoshue opened this issue ยท 1 comments

commented

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
  1. Make sure server has applied all mentioned to be configured above, restart it or reload plugin or whatever to apply
  2. Join server
  3. You will be greeted with our defined welcome message (console will execute defined command correctly)
  4. Register/Login
  5. Now before 1 minute since you logged in passes out, join back on server
  6. You will see that there is no message we defined, but we should receive it
  7. Now leave server again and do not join until at least 1 minute passes since you logged in last time
  8. 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)
  9. 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

commented

Try onSessionLogin?