From 45b4e1463f20826d1ef68d9a104f4189bba64b59 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 28 Oct 2018 15:18:02 +0000 Subject: [PATCH] Match the type in verbose filters --- .../me/lucko/luckperms/common/verbose/VerboseFilter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/verbose/VerboseFilter.java b/common/src/main/java/me/lucko/luckperms/common/verbose/VerboseFilter.java index 732f12b81..d69cf6036 100644 --- a/common/src/main/java/me/lucko/luckperms/common/verbose/VerboseFilter.java +++ b/common/src/main/java/me/lucko/luckperms/common/verbose/VerboseFilter.java @@ -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) );