mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-24 09:24:24 +00:00
Improve the way meta lookups are caught & reported to the verbose handler
This commit is contained in:
6 files changed
+67
-17
No files matched your search
+1
-1
@@ -311,7 +311,7 @@ public abstract class CalculatedSubject implements LPSubject {
|
||||
@Override
|
||||
public Optional<String> getOption(ImmutableContextSet contexts, String key) {
|
||||
Contexts lookupContexts = Contexts.of(contexts, Contexts.global().getSettings());
|
||||
return Optional.ofNullable(this.cachedData.getMetaData(lookupContexts).getMetaValue(key, MetaCheckEvent.Origin.PLATFORM_API));
|
||||
return Optional.ofNullable(this.cachedData.getMetaData(lookupContexts).getMeta(MetaCheckEvent.Origin.PLATFORM_API).get(key));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -153,7 +153,7 @@ public abstract class HolderSubject<T extends PermissionHolder> implements LPSub
|
||||
}
|
||||
}
|
||||
|
||||
String val = data.getMetaValue(s, MetaCheckEvent.Origin.PLATFORM_API);
|
||||
String val = data.getMeta(MetaCheckEvent.Origin.PLATFORM_API).get(s);
|
||||
if (val != null) {
|
||||
return Optional.of(val);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user