Commit 1de2601
authored
Fix LimboAPI login injection on Velocity-CTD (DEFAULT_PERMISSION_RESOLVER fallback) (#236)
Velocity-CTD does not expose ConnectedPlayer.DEFAULT_PERMISSIONS (it uses DEFAULT_PERMISSION_RESOLVER instead),
which caused LoginTasksQueue static initialization to fail with NoSuchFieldException during player connect.
Update LoginTasksQueue to prefer DEFAULT_PERMISSIONS when present (standard Velocity),
and when absent,
reflect DEFAULT_PERMISSION_RESOLVER and wrap it into a PermissionProvider so PermissionsSetupEvent can still run.
This restores LimboAPI login injection compatibility with Velocity-CTD.
Co-authored-by: gbpii <gbpii@users.noreply.github.com>1 parent 6540728 commit 1de2601
1 file changed
Lines changed: 13 additions & 3 deletions
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
298 | 308 | | |
299 | 309 | | |
300 | 310 | | |
| |||
0 commit comments