Files
Bat/src/main/java/cc/fascinated/bat/leveling/command/LevelingCommand.java
2024-12-27 13:48:53 +00:00

28 lines
862 B
Java

package cc.fascinated.bat.leveling.command;
import cc.fascinated.bat.common.oldcommand.BatCommand;
import cc.fascinated.bat.common.oldcommand.CommandInfo;
import lombok.NonNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
/**
* @author Fascinated (fascinated7)
*/
@Component
@CommandInfo(
name = "leveling",
description = "The main command for the leveling feature"
)
public class LevelingCommand extends BatCommand {
@Autowired
public LevelingCommand(@NonNull ApplicationContext context) {
super.addSubCommands(
context.getBean(CurrentSubCommand.class),
context.getBean(ChannelSubCommand.class),
context.getBean(ResetSubCommand.class)
);
}
}