use of ivorius.mcopts.commands.parameters.NaP in project RecurrentComplex by Ivorforce.
the class CommandEval method execute.
@Override
public void execute(MinecraftServer server, ICommandSender commandSender, String[] args) throws CommandException {
Parameters parameters = Parameters.of(args, expect()::declare);
DependencyExpression matcher = parameters.get(0).rest(NaP::join).to(RCP::expression, new DependencyExpression()).require();
boolean result = matcher.test(RecurrentComplex.saver);
commandSender.sendMessage(RecurrentComplex.translations.get(result ? "commands.rceval.result.true" : "commands.rceval.result.false"));
}
Aggregations