All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.cwcode.commands.paperplatform.paper.PaperTabCompleter Maven / Gradle / Ivy

package ru.cwcode.commands.paperplatform.paper;

import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import ru.cwcode.commands.Command;
import ru.cwcode.commands.TabCompleter;

import java.util.List;

public class PaperTabCompleter extends TabCompleter implements org.bukkit.command.TabCompleter {
  public PaperTabCompleter(Command command) {
    super(command);
  }
  
  @Override
  public @Nullable List onTabComplete(@NotNull CommandSender commandSender, org.bukkit.command.@NotNull Command command, @NotNull String s, @NotNull String[] strings) {
    return onTabComplete(new PaperSender(commandSender), strings);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy