mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 11:26:10 +03:00
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
|
|
@@ -93,7 +93,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();
|
|
}
|
|
}
|