AuthMeReloaded
AuthMeReloaded copied to clipboard
If Sessions are enabled, until player session expiry, onJoin from commands.yml does not execute at all
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
- Enable sessions in main config
- Set session expiry to 1 (minute)
- Go to commands.yml and create some example onJoin command like so:
onJoin:
welcome:
command: 'msg %p Welcome back!'
executor: CONSOLE
- Make sure server has applied all mentioned to be configured above, restart it or reload plugin or whatever to apply
- Join server
- You will be greeted with our defined
welcomemessage (console will execute defined command correctly) - Register/Login
- Now before 1 minute since you logged in passes out, join back on server
- You will see that there is no message we defined, but we should receive it
- Now leave server again and do not join until at least 1 minute passes since you logged in last time
- Join back in and you will see that you will be greeted with our defined
welcomemessage correctly (and also need to re-login because your session is over) - 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
Try onSessionLogin?