mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-04 17:49:48 +01:00
Tab complete for bungee
This commit is contained in:
parent
7d3548956e
commit
eb8065ad20
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user