use of com.gianlu.pyxreborn.server.DB.CardsDB in project PretendYoureXyzzyReborn by devgianlu.
the class Startup method main.
public static void main(String[] args) throws SQLException {
Config config = new Config();
try {
JCommander.newBuilder().programName("pyx-server").addObject(config).expandAtSign(true).build().parse(args);
} catch (ParameterException ex) {
ex.printStackTrace();
ex.getJCommander().usage();
System.exit(1);
return;
}
CardsDB db = new CardsDB(config);
CardSets sets = db.loadCardSets();
Server server = new Server(config, sets);
server.start();
}
Aggregations