mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
921fbc5f60
By: md_5 <git@md-5.net>
19 lines
929 B
Diff
19 lines
929 B
Diff
--- a/net/minecraft/commands/arguments/ArgumentEntity.java
|
|
+++ b/net/minecraft/commands/arguments/ArgumentEntity.java
|
|
@@ -102,9 +102,15 @@
|
|
}
|
|
|
|
private EntitySelector parse(StringReader stringreader, boolean flag) throws CommandSyntaxException {
|
|
+ // CraftBukkit start
|
|
+ return parse(stringreader, flag, false);
|
|
+ }
|
|
+
|
|
+ public EntitySelector parse(StringReader stringreader, boolean flag, boolean overridePermissions) throws CommandSyntaxException {
|
|
+ // CraftBukkit end
|
|
boolean flag1 = false;
|
|
ArgumentParserSelector argumentparserselector = new ArgumentParserSelector(stringreader, flag);
|
|
- EntitySelector entityselector = argumentparserselector.parse();
|
|
+ EntitySelector entityselector = argumentparserselector.parse(overridePermissions); // CraftBukkit
|
|
|
|
if (entityselector.getMaxResults() > 1 && this.single) {
|
|
if (this.playersOnly) {
|