Skip to content

Commit

Permalink
Update PlayerTag.java
Browse files Browse the repository at this point in the history
Oopsies forgot to update this.
  • Loading branch information
Fortifier42 committed Aug 8, 2020
1 parent e0ae24b commit 2eb1001
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1242,17 +1242,17 @@ else if (ban.getExpiration() == null) {
return null;
}
ListTag list = new ListTag();
String world = null;
WorldTag world = null;
if (attribute.hasContext(1)) {
if (WorldTag.matches(attribute.getContext(1))) {
world = attribute.getAttribute(1);
world = attribute.contextAsType(1, WorldTag.class);
}
else {
return null;
}
}
for (String group : Depends.permissions.getGroups()) {
if (Depends.permissions.playerInGroup(world, object.getOfflinePlayer(), group)) {
if (Depends.permissions.playerInGroup(world.getName(), object.getOfflinePlayer(), group)) {
list.add(group);
}
}
Expand Down

0 comments on commit 2eb1001

Please sign in to comment.