Command Framework [1.7 - 1.21.4] icon

Command Framework [1.7 - 1.21.4] -----

A lightweight annotation based command system



Added option to send command usage when command is not matched
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.
Code (Java):
    /**
     * 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
----------, Aug 11, 2023
Resource Information
Author:
----------
Total Downloads: 5,843
First Release: Mar 10, 2021
Last Update: Jan 3, 2025
Category: ---------------
All-Time Rating:
2 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings