Tab complete for bungee

This commit is contained in:
Myles 2016-10-01 21:30:39 +01:00
parent 7d3548956e
commit eb8065ad20

View File

@ -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<String> onTabComplete(CommandSender commandSender, String[] strings) {
return handler.onTabComplete(new BungeeCommandSender(commandSender), strings);
}
}