Merge branch 'modular' of https://github.com/MylesIsCool/ViaVersion into modular

This commit is contained in:
Matsv 2016-10-02 11:28:10 +02:00
commit 975743c76f
No known key found for this signature in database
GPG Key ID: 97CEC2A2EA31350F

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);
}
}