Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheJoshue opened this issue Dec 14, 2023 · 1 comment

Comments

@TheJoshue
Copy link

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

@HaHaWTH
Copy link
Contributor

HaHaWTH commented Dec 16, 2023

Try onSessionLogin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants