package gq.unurled.raxen.commands.player; import gq.unurled.raxen.Raxen; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.TabExecutor; import org.bukkit.entity.Player; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.List; import static gq.unurled.raxen.utils.Utils.error; public class ClassCommand implements TabExecutor { private Raxen main; public ClassCommand(Raxen main) { this.main = main; } @Override public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) { if(!(sender instanceof Player)) { error("The console can't execute this Command!"); return true; } Player player = (Player) sender; return false; } @Override public @Nullable List onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args) { return null; } }