Skip to content

fix: add server name to lp context if not otherwise configured#1802

Merged
0utplay merged 1 commit intonightlyfrom
server-key-lp-context
Nov 21, 2025
Merged

fix: add server name to lp context if not otherwise configured#1802
0utplay merged 1 commit intonightlyfrom
server-key-lp-context

Conversation

@derklaro
Copy link
Member

Motivation

The server key is an essential part of the luckperms context calculation. By default, it is taken from the LuckPerms config file, however, if the default value global is left unchanged, the key isn't added to the context. However, we do know the current server name and are able to add it to the LuckPerms context.

Modification

Add the server key holding the current service name to the luckperms context if the server name is not specified in the LuckPerms configuration file.

Result

The server context key is correctly configured automatically by default. If the user wants to he can still change the value in the LuckPerms configuration to his needs.

@derklaro derklaro added this to the 4.0.0-RC16 milestone Nov 15, 2025
@derklaro derklaro requested a review from 0utplay November 15, 2025 18:47
@derklaro derklaro self-assigned this Nov 15, 2025
@derklaro derklaro 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. t: improvement The pull request improves existing code in: plugin An issue/pull request releated to one of the internal plugins labels Nov 15, 2025
@github-actions
Copy link

Test Results

 56 files  ±0   56 suites  ±0   3m 29s ⏱️ -8s
570 tests ±0  570 ✅ ±0  0 💤 ±0  0 ❌ ±0 
937 runs  ±0  937 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 16c4250. ± Comparison against base commit db0b5f5.

@0utplay 0utplay merged commit b32289e into nightly Nov 21, 2025
6 checks passed
@0utplay 0utplay deleted the server-key-lp-context branch November 21, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: plugin An issue/pull request releated to one of the internal plugins t: fix A pull request introducing a fix for a bug. t: improvement The pull request improves existing code 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.

2 participants