use of pl.themolka.arcade.parser.ParserContext in project Arcade2 by ShootGame.
the class SimpleGameManager method setDefaultMaxGameId.
@Override
public void setDefaultMaxGameId() {
Node node = this.plugin.getSettings().getData().child("queue");
if (node == null) {
return;
}
try {
ParserContext context = this.plugin.getParsers().createContext();
this.setMaxGameId(context.type(Integer.class).parse(node.property("restart-after")).orFail());
} catch (ParserNotSupportedException | ParserException ex) {
ex.printStackTrace();
}
}
Aggregations