2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/commands/arguments/ArgumentEntity.java
|
|
|
|
+++ b/net/minecraft/commands/arguments/ArgumentEntity.java
|
2022-06-07 18:00:00 +02:00
|
|
|
@@ -94,9 +94,15 @@
|
2019-01-31 05:08:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public EntitySelector parse(StringReader stringreader) throws CommandSyntaxException {
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ return parse(stringreader, false);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public EntitySelector parse(StringReader stringreader, boolean overridePermissions) throws CommandSyntaxException {
|
|
|
|
+ // CraftBukkit end
|
|
|
|
boolean flag = false;
|
|
|
|
ArgumentParserSelector argumentparserselector = new ArgumentParserSelector(stringreader);
|
2019-04-23 04:00:00 +02:00
|
|
|
- EntitySelector entityselector = argumentparserselector.parse();
|
|
|
|
+ EntitySelector entityselector = argumentparserselector.parse(overridePermissions); // CraftBukkit
|
2019-01-31 05:08:25 +01:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
if (entityselector.getMaxResults() > 1 && this.single) {
|
2021-06-11 07:00:00 +02:00
|
|
|
if (this.playersOnly) {
|