Home›Java›Mods›MmCommands
MmCommands
ModsJava

MmCommands

Java mod listed for Minecraft 1.10–1.16. Download on the author's site.

⬇ Download on Spigot
[​IMG] ​
MmCommands is a project that is aimed at removing some of the repetitive tasks developers may encounter when implementing a command system into their plugins and provides aid at implementing complex tree-like command structures.

The project itself consists of 3 main concepts:
Get rid of the overhead of dispatching commands and get to the coding (fun) part!

An example of a command class using this API can be found here:
Spoiler: Command class
Code (Java):
@MmCommandSignature (
        name = "say",
        type = MmCommandType. PLAYER_CONSOLE,
        description = "post a message in chat"
        aliases = { "tell", "narrate" },
        permission = "myplugin.say",
        arguments = "<message>"
)
public class MyCommand extends MmCommand {
    @Override
    public void onCommand (@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, String [ ] strings ) {
        Bukkit. broadcastMessage ( String. join ( " ", strings ) ) ;
    }

    @Override
    public @Nullable List <String > onTabComplete (@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, String [ ] strings ) {
        return new ArrayList <> ( ) ;
    }
}

The API allows developers to change certain aspects of how it functions but modifying the default behavior is not required to start using the API. The javadoc and source code of the API are linked above. Feel free to take a look before getting started.

If you want to jump straight into it, there is an in-depth tutorial to walk you through the API: tutorial

This is not a plugin
It is an API that can be used by developers to improve the way they handle command systems within their own plugin.

Support will be provided on the MmPlugins discord server and code issues/pull requests can be made on the GitHub repo.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MmCommands is a free Minecraft Java mod. Compatible with Minecraft 1.10, 1.11, 1.12, 1.13 and newer. Downloaded 57 times (via Spigot). Download it and open it directly in the game.

Explore more