mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-2630: Console tab complete
By: md_5 <git@md-5.net>
This commit is contained in:
parent
29623943f1
commit
89ad42c3ab
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public final class VanillaCommandWrapper extends VanillaCommand {
|
||||||
Validate.notNull(sender, "Sender cannot be null");
|
Validate.notNull(sender, "Sender cannot be null");
|
||||||
Validate.notNull(args, "Arguments cannot be null");
|
Validate.notNull(args, "Arguments cannot be null");
|
||||||
Validate.notNull(alias, "Alias cannot be null");
|
Validate.notNull(alias, "Alias cannot be null");
|
||||||
return (List<String>) vanillaCommand.tabComplete(MinecraftServer.getServer(), getListener(sender), args, new BlockPosition(location.getX(), location.getY(), location.getZ()));
|
return (List<String>) vanillaCommand.tabComplete(MinecraftServer.getServer(), getListener(sender), args, (location) == null ? null : new BlockPosition(location.getX(), location.getY(), location.getZ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CommandSender lastSender = null; // Nasty :(
|
public static CommandSender lastSender = null; // Nasty :(
|
||||||
|
|
Loading…
Reference in a new issue