blob: ed40be16acae332cfd7ce71c625831b544d07360 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- a/net/minecraft/commands/arguments/EntityArgument.java
+++ b/net/minecraft/commands/arguments/EntityArgument.java
@@ -96,10 +94,17 @@
@Override
public EntitySelector parse(StringReader reader) throws CommandSyntaxException {
- int i = 0;
- EntitySelectorParser entitySelectorParser = new EntitySelectorParser(reader);
- EntitySelector entitySelector = entitySelectorParser.parse();
- if (entitySelector.getMaxResults() > 1 && this.single) {
+ // CraftBukkit start
+ return parse(reader, false);
+ }
+
+ public EntitySelector parse(StringReader stringreader, boolean overridePermissions) throws CommandSyntaxException {
+ // CraftBukkit end
+ boolean flag = false;
+ EntitySelectorParser argumentparserselector = new EntitySelectorParser(stringreader);
+ EntitySelector entityselector = argumentparserselector.parse(overridePermissions); // CraftBukkit
+
+ if (entityselector.getMaxResults() > 1 && this.single) {
if (this.playersOnly) {
reader.setCursor(0);
throw ERROR_NOT_SINGLE_PLAYER.createWithContext(reader);
|