package cc.fascinated.command; import cc.fascinated.Aetheria; import cc.fascinated.command.impl.TotalJoinsCommand; import java.util.Objects; public class CommandManager { public CommandManager() { registerCommand(new TotalJoinsCommand()); } public static void registerCommand(Command command) { if (command == null) { throw new IllegalArgumentException("Command cannot be null."); } Objects.requireNonNull(Aetheria.INSTANCE.getCommand(command.getCommand())).setExecutor(command); } }