Skip to content

fix: check syncproxy perms after the player is accessible#1308

Merged
derklaro merged 5 commits intonightlyfrom
syncproxy-bungee-perm-check
Oct 21, 2023
Merged

fix: check syncproxy perms after the player is accessible#1308
derklaro merged 5 commits intonightlyfrom
syncproxy-bungee-perm-check

Conversation

@0utplay
Copy link
Member

@0utplay 0utplay commented Sep 25, 2023

Motivation

The previously used LoginEvent does not provide a player instance due to the fact the there is no player at that time in the login processes. Therefore we were relying on an unsafe check using the uuid and calling the permission event ourselves.

Modification

Switched to the ServerConnectEvent which is also capable of notifying about a player connecting to the proxy itself.

Result

Permission checks with luckperms and other (non cloudperms) systems are working now too.

Other

Maybe we should consider replacing the usage of the pending connection in the cloudnet bridge too (it is not as important there because little to no one uses the bridge maintenance on the proxy)

Fixes #1069

@0utplay 0utplay added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: module An issue/pull request releated to one of the internal modules labels Sep 25, 2023
@0utplay 0utplay added this to the 4.0.0-RC10 milestone Sep 25, 2023
@0utplay 0utplay requested a review from derklaro September 25, 2023 10:35
@0utplay 0utplay self-assigned this Sep 25, 2023
@github-actions
Copy link

github-actions bot commented Sep 26, 2023

Test Results

  47 files  ±0    47 suites  ±0   1m 18s ⏱️ -1s
394 tests ±0  394 ✔️ ±0  0 💤 ±0  0 ±0 
724 runs  ±0  724 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 0f16404. ± Comparison against base commit 102853c.

♻️ This comment has been updated with latest results.

@derklaro derklaro merged commit 8636a77 into nightly Oct 21, 2023
@derklaro derklaro deleted the syncproxy-bungee-perm-check branch October 21, 2023 16:20
@0utplay 0utplay linked an issue Dec 31, 2023 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: module An issue/pull request releated to one of the internal modules t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when joining while using Luckperms LuckPerms Login Fehler

2 participants