3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-20 06:50:08 +01:00

Tab complete for bungee

Dieser Commit ist enthalten in:
Myles 2016-10-01 21:30:39 +01:00
Ursprung 7d3548956e
Commit eb8065ad20

Datei anzeigen

@ -2,8 +2,9 @@ package us.myles.ViaVersion.bungee.commands;
import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Command; 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; private final BungeeCommandHandler handler;
public BungeeCommand(BungeeCommandHandler handler) { public BungeeCommand(BungeeCommandHandler handler) {
@ -16,4 +17,8 @@ public class BungeeCommand extends Command {
handler.onCommand(new BungeeCommandSender(commandSender), strings); handler.onCommand(new BungeeCommandSender(commandSender), strings);
} }
@Override
public Iterable<String> onTabComplete(CommandSender commandSender, String[] strings) {
return handler.onTabComplete(new BungeeCommandSender(commandSender), strings);
}
} }