From eb8065ad20eb48f573ade0fae12d3ea4e597887b Mon Sep 17 00:00:00 2001 From: Myles Date: Sat, 1 Oct 2016 21:30:39 +0100 Subject: [PATCH] Tab complete for bungee --- .../us/myles/ViaVersion/bungee/commands/BungeeCommand.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bungee/src/main/java/us/myles/ViaVersion/bungee/commands/BungeeCommand.java b/bungee/src/main/java/us/myles/ViaVersion/bungee/commands/BungeeCommand.java index b5114b9b4..bdb4cbd51 100644 --- a/bungee/src/main/java/us/myles/ViaVersion/bungee/commands/BungeeCommand.java +++ b/bungee/src/main/java/us/myles/ViaVersion/bungee/commands/BungeeCommand.java @@ -2,8 +2,9 @@ package us.myles.ViaVersion.bungee.commands; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.plugin.Command; +import net.md_5.bungee.api.plugin.TabExecutor; -public class BungeeCommand extends Command { +public class BungeeCommand extends Command implements TabExecutor{ private final BungeeCommandHandler handler; public BungeeCommand(BungeeCommandHandler handler) { @@ -16,4 +17,8 @@ public class BungeeCommand extends Command { handler.onCommand(new BungeeCommandSender(commandSender), strings); } + @Override + public Iterable onTabComplete(CommandSender commandSender, String[] strings) { + return handler.onTabComplete(new BungeeCommandSender(commandSender), strings); + } }