Add UUID mismatch warning suppression setting (#4194)

This commit is contained in:
John authored and GitHub committed 2026-01-10 12:37:19 +00:00
1 parent a6382773f0
commit 840ac52f83
1 file changed
+1 -1
@@ -75,7 +75,7 @@ public abstract class AbstractConnectionListener {
// most likely because ip forwarding is not setup correctly
// print a warning to the console
if (saveResult.includes(PlayerSaveResult.Outcome.OTHER_UNIQUE_IDS_PRESENT_FOR_USERNAME)) {
if (saveResult.includes(PlayerSaveResult.Outcome.OTHER_UNIQUE_IDS_PRESENT_FOR_USERNAME) && !Boolean.getBoolean("luckperms.suppress-uuid-mismatch-warning")) {
Set<UUID> otherUuids = saveResult.getOtherUniqueIds();
this.plugin.getLogger().warn("LuckPerms already has data for player '" + username + "' - but this data is stored under a different UUID.");