From a3ca670a328981d0672f5762e4730c616249926a Mon Sep 17 00:00:00 2001 From: wizjany Date: Sat, 1 Jun 2019 09:48:45 -0400 Subject: [PATCH] Fix sponge perms too. Untested tho cuz 1.13 lol --- .../java/com/sk89q/worldedit/sponge/CommandAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/CommandAdapter.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/CommandAdapter.java index afbb2a51c..01340ae4b 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/CommandAdapter.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/CommandAdapter.java @@ -44,11 +44,11 @@ public abstract class CommandAdapter implements CommandCallable { .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