mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-05 01:59:40 +01:00
Merge branch 'modular' of https://github.com/MylesIsCool/ViaVersion into modular
This commit is contained in:
commit
975743c76f
@ -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