net.guizhanss.guizhanlib.minecraft.commands.SubCommand Maven / Gradle / Ivy
package net.guizhanss.guizhanlib.minecraft.commands;
import org.bukkit.command.CommandSender;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import java.util.function.BiFunction;
public abstract class SubCommand extends AbstractCommand {
protected SubCommand(@Nullable AbstractCommand parent, @Nonnull String name,
@Nonnull BiFunction description,
@Nonnull String usage, @Nonnull SubCommand... subCommands) {
super(parent, name, description, usage, subCommands);
}
@ParametersAreNonnullByDefault
protected SubCommand(String name, BiFunction description,
String usage, SubCommand... subCommands) {
super(name, description, usage, subCommands);
}
}