mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Match the type in verbose filters
This commit is contained in:
parent
be92a67544
commit
45b4e1463f
@ -275,7 +275,8 @@ public final class VerboseFilter {
|
||||
if (event instanceof PermissionCheckEvent) {
|
||||
PermissionCheckEvent permissionEvent = (PermissionCheckEvent) event;
|
||||
return Boolean.toString(
|
||||
permissionEvent.getCheckTarget().equalsIgnoreCase(this.value) ||
|
||||
this.value.equals("permission") ||
|
||||
permissionEvent.getCheckTarget().equalsIgnoreCase(this.value) ||
|
||||
permissionEvent.getPermission().toLowerCase().startsWith(this.value.toLowerCase()) ||
|
||||
permissionEvent.getResult().name().equalsIgnoreCase(this.value)
|
||||
);
|
||||
@ -284,7 +285,8 @@ public final class VerboseFilter {
|
||||
if (event instanceof MetaCheckEvent) {
|
||||
MetaCheckEvent metaEvent = (MetaCheckEvent) event;
|
||||
return Boolean.toString(
|
||||
metaEvent.getCheckTarget().equalsIgnoreCase(this.value) ||
|
||||
this.value.equals("meta") ||
|
||||
metaEvent.getCheckTarget().equalsIgnoreCase(this.value) ||
|
||||
metaEvent.getKey().toLowerCase().startsWith(this.value.toLowerCase()) ||
|
||||
metaEvent.getResult().equalsIgnoreCase(this.value)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user