It looks like 2FA does not expire until server restart (or takes very long to expire).
Also you can still open doors (and maybe use some activated items, I haven't checked) when not authenticated.
How To Reproduce
Start the server with 2FA.
Authenticate.
Log out.
Log in again. You will not be prompted anything from 2FA plugin. "require-when.on-ip-change" and "require-when.every-login" configuration properties are ignored.
Expected behavior
Player authentication should expire on quit.
Server Information
Server Java and OS
Java Runtime Version: 17.0.5+8
OS: Linux
Server Plugins
LuckPerms | 5.4.54 | Enabled: true
PrometheusExporter | 2.5.0 | Enabled: true
2FA | 1.6.3 | Enabled: true
Server Jar, Versions and Information
Spigot Build version: git-Paper-307 (MC: 1.19.2)
Server Version: 1.19.2-R0.1-SNAPSHOT
Version Instance: v1_19_2
NMSVersion Instance: v1_19_R1
Max Memory: 4294 MB
Free Memory: 2247 MB
Total Memory: 4294 MB
Communication Method & Proxies:
Using Bungeecord: false
Is Proxy Loaded: false
Communication Method in config: NONE
Communication Timeout in config: 30 ticks
Storage Information:
Type of Storage: JSON
Is external Storage loaded: false
Additional context
It looks like onPlayerQuit is not called for some reason.
Describe the bug
How To Reproduce
Expected behavior Player authentication should expire on quit.
Server Information Server Java and OS
Server Plugins
Server Jar, Versions and Information
Communication Method & Proxies:
Storage Information:
Additional context It looks like
onPlayerQuit
is not called for some reason.