Skip to content

Replace deprecated PlayerLoginEvent in WorldGuardPlayerListener - #2339

Open
latifil wants to merge 2 commits into
EngineHub:version/7.0.xfrom
latifil:fix/legacy-playerloginevent-usage
Open

latifil wants to merge 2 commits into
EngineHub:version/7.0.xfrom
latifil:fix/legacy-playerloginevent-usage

Conversation

@latifil

@latifil latifil commented Dec 4, 2026

Copy link
Copy Markdown

Moved the handling of deop-everyone-on-join to run in PlayerConnectionValidateLoginEvent. It deops the player before the Player instance exists, so a player should never log in with op permissions.

Host-key checks now run off the main thread, because of this if a player joined the server when a reload happened the check could see an incomplete list and let them in. To solve this YamlConfigurationManager builds the host-key map first and then swaps it in as an ImmutableMap.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant