forked from Fascinated/Bat
21 lines
641 B
Java
21 lines
641 B
Java
|
package cc.fascinated.bat.features.afk;
|
||
|
|
||
|
import cc.fascinated.bat.features.Feature;
|
||
|
import cc.fascinated.bat.features.afk.command.AfkCommand;
|
||
|
import cc.fascinated.bat.service.CommandService;
|
||
|
import lombok.NonNull;
|
||
|
import org.springframework.context.ApplicationContext;
|
||
|
import org.springframework.stereotype.Component;
|
||
|
|
||
|
/**
|
||
|
* @author Fascinated (fascinated7)
|
||
|
*/
|
||
|
@Component
|
||
|
public class AfkFeature extends Feature {
|
||
|
public AfkFeature(@NonNull ApplicationContext context, @NonNull CommandService commandService) {
|
||
|
super("AFK", Category.GENERAL);
|
||
|
|
||
|
commandService.registerCommand(context.getBean(AfkCommand.class));
|
||
|
}
|
||
|
}
|