mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-23 19:16:31 +01:00
use built-in GM inGroup for group check.
This commit is contained in:
parent
a6bd606b5e
commit
471035040d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user