ModsJava
MmCommands
Java mod listed for Minecraft 1.10–1.16. Download on the author's site.
⬇ Download on Spigot
The project itself consists of 3 main concepts:
- The MmCommand handler
- MmCommands
- MmCommandSignatures
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 <> ( ) ;
}
}
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
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.10, 1.11, 1.12
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.