How would i design someting like this:
public class FactionCommand {
private Faction core;
// Setting the base command
@CommandMeta(name="faction", aliases={"f"})
public void faction(CommandInfo command) {
Sender sender = command.getSender();
// bla bla
}
@CommandMeta(name="list", permission="faction.list.command", usage="&7/&f{command} {name}")
public void list(CommandInfo command) {
Sender sender = command.getSender();
this.core.getFactions().foreach(faction -> sender.sendMessage(faction));
}
}```