Skip to content

Commit

Permalink
Fix sponge perms too.
Browse files Browse the repository at this point in the history
Untested tho cuz 1.13 lol
  • Loading branch information
wizjany committed Jun 1, 2019
1 parent 1e7c074 commit a3ca670
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -44,11 +44,11 @@ public boolean testPermission(CommandSource source) {
.map(PermissionCondition::getPermissions)
.orElseGet(Collections::emptySet);
for (String perm : permissions) {
if (!source.hasPermission(perm)) {
return false;
if (source.hasPermission(perm)) {
return true;
}
}
return true;
return false;
}

@Override
Expand Down

0 comments on commit a3ca670

Please sign in to comment.