2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/commands/arguments/ArgumentEntity.java
|
|
|
|
+++ b/net/minecraft/commands/arguments/ArgumentEntity.java
|
2024-08-08 23:00:00 +02:00
|
|
|
@@ -102,9 +102,15 @@
|
2019-01-31 05:08:25 +01:00
|
|
|
}
|
|
|
|
|
2024-08-08 23:00:00 +02:00
|
|
|
private EntitySelector parse(StringReader stringreader, boolean flag) throws CommandSyntaxException {
|
2019-01-31 05:08:25 +01:00
|
|
|
+ // CraftBukkit start
|
2024-08-08 23:00:00 +02:00
|
|
|
+ return parse(stringreader, flag, false);
|
2019-01-31 05:08:25 +01:00
|
|
|
+ }
|
|
|
|
+
|
2024-08-08 23:00:00 +02:00
|
|
|
+ public EntitySelector parse(StringReader stringreader, boolean flag, boolean overridePermissions) throws CommandSyntaxException {
|
2019-01-31 05:08:25 +01:00
|
|
|
+ // CraftBukkit end
|
2024-08-08 23:00:00 +02:00
|
|
|
boolean flag1 = false;
|
|
|
|
ArgumentParserSelector argumentparserselector = new ArgumentParserSelector(stringreader, flag);
|
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) {
|