use of io.github.nucleuspowered.nucleus.argumentparsers.NoModifiersArgument in project Nucleus by NucleusPowered.
the class NoCostArgumentTests method getNoCostArgument.
private CommandContext getNoCostArgument(CommandElement toWrap, CommandContext cc) throws ArgumentParseException {
CommandSource s = Mockito.mock(Player.class);
CommandArgs ca = new CommandArgs("", new ArrayList<>());
NoModifiersArgument<?> nca = new NoModifiersArgument<>(toWrap, (c, o) -> true);
nca.parse(s, ca, cc);
return cc;
}
Aggregations