--- a/net/minecraft/commands/arguments/selector/EntitySelector.java
+++ b/net/minecraft/commands/arguments/selector/EntitySelector.java
@@ -90,7 +90,7 @@
     }
 
     private void e(CommandListenerWrapper commandlistenerwrapper) throws CommandSyntaxException {
-        if (this.usesSelector && !commandlistenerwrapper.hasPermission(2)) {
+        if (this.usesSelector && !commandlistenerwrapper.hasPermission(2, "minecraft.command.selector")) { // CraftBukkit
             throw ArgumentEntity.ERROR_SELECTORS_NOT_ALLOWED.create();
         }
     }
