Skip to content

1.2.2

Compare
Choose a tag to compare
@Despical Despical released this 11 Aug 09:27
· 167 commits to main since this release

1.2.2 Release Notes:

  • Replaced CommandFramework#setAnyMatch method which is Java Consumer with CommandFramework#setMatchFunction which is a Java Function from functional interfaces feature, now you can return a boolean value and consider sending command usages to sender. Sender will receive usage message by default.
	/**
	 * Function to apply if there is no matched commands related framework.
	 *
	 * <pre>
	 *     // To disable sending usage to command sender return true
	 *     CommandFramework#setMatchFunction(arguments -> true);
	 * </pre>
	 */
	@Nullable
	private Function<CommandArguments, Boolean> matchFunction = (arguments) -> false;

Full Changelog: 1.2.1...1.2.2