mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix sponge perms too.
Untested tho cuz 1.13 lol
This commit is contained in:
parent
1e7c074217
commit
a3ca670a32
@ -44,12 +44,12 @@ public abstract class CommandAdapter implements CommandCallable {
|
|||||||
.map(PermissionCondition::getPermissions)
|
.map(PermissionCondition::getPermissions)
|
||||||
.orElseGet(Collections::emptySet);
|
.orElseGet(Collections::emptySet);
|
||||||
for (String perm : permissions) {
|
for (String perm : permissions) {
|
||||||
if (!source.hasPermission(perm)) {
|
if (source.hasPermission(perm)) {
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Text> getShortDescription(CommandSource source) {
|
public Optional<Text> getShortDescription(CommandSource source) {
|
||||||
|
Loading…
Reference in New Issue
Block a user