From cf69daff78a2115438ed738679299477c7627d97 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Fri, 9 Dec 2011 07:19:26 -0800 Subject: [PATCH] Fixed inGroup always returning true for ops --- src/main/java/com/sk89q/wepif/DinnerPermsResolver.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/wepif/DinnerPermsResolver.java b/src/main/java/com/sk89q/wepif/DinnerPermsResolver.java index 96256afcc..b254bb107 100644 --- a/src/main/java/com/sk89q/wepif/DinnerPermsResolver.java +++ b/src/main/java/com/sk89q/wepif/DinnerPermsResolver.java @@ -91,11 +91,13 @@ public class DinnerPermsResolver implements PermissionsResolver { } public boolean inGroup(OfflinePlayer player, String group) { - Permissible perms = getPermissible(player); + final Permissible perms = getPermissible(player); if (perms == null) { return false; } - return perms.hasPermission(GROUP_PREFIX + group); + + final String perm = GROUP_PREFIX + group; + return perms.isPermissionSet(perm) && perms.hasPermission(perm); } public String[] getGroups(OfflinePlayer player) {