13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/ArgumentEntity.patch
CraftBukkit/Spigot 8b6d75b06e SPIGOT-4193: API for selecting entities by strings
By: md_5 <git@md-5.net>
2019-01-31 15:08:25 +11:00

20 Zeilen
826 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.s();
+ EntitySelector entityselector = argumentparserselector.s(overridePermissions); // CraftBukkit
if (entityselector.a() > 1 && this.h) {
if (this.i) {