mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
19 lines
834 B
Diff
19 lines
834 B
Diff
--- a/net/minecraft/server/ArgumentEntity.java
|
|
+++ b/net/minecraft/server/ArgumentEntity.java
|
|
@@ -84,9 +84,15 @@
|
|
}
|
|
|
|
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);
|
|
- EntitySelector entityselector = argumentparserselector.parse();
|
|
+ EntitySelector entityselector = argumentparserselector.parse(overridePermissions); // CraftBukkit
|
|
|
|
if (entityselector.a() > 1 && this.h) {
|
|
if (this.i) {
|