use built-in GM inGroup for group check.

This commit is contained in:
Sleaker 2012-01-15 12:09:11 -08:00
parent a6bd606b5e
commit 471035040d

View File

@ -184,12 +184,7 @@ public class Permission_GroupManager extends Permission {
@Override
public boolean playerInGroup(String worldName, String playerName, String groupName) {
String[] groups = perms.getGroups(playerName);
for (String group : groups)
if (group.equalsIgnoreCase(groupName))
return true;
return false;
return perms.inGroup(playerName, worldName);
}
@Override