12 lines
568 B
Diff
12 lines
568 B
Diff
--- a/net/minecraft/commands/arguments/selector/EntitySelector.java
|
|
+++ b/net/minecraft/commands/arguments/selector/EntitySelector.java
|
|
@@ -90,7 +90,7 @@
|
|
}
|
|
|
|
private void checkPermissions(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();
|
|
}
|
|
}
|