ModsJava
CommandFactory [1.8-1.16] | Replace nasty onCommand methods with clean code.
CommandFactory [1.8-1.13 ]
Please feel free to write a review, if you like this library
This Project is OpenSource! Feel free to do anything you like with it, as long as you obey the license terms (LICENSE file or in simple words https://www.tldrlegal.com/l/apache2)
Please feel free to write a review, if you like this library

This Project is OpenSource! Feel free to do anything you like with it, as long as you obey the license terms (LICENSE file or in simple words https://www.tldrlegal.com/l/apache2)
Are you tired of endless onCommand methods, with several if, else statements to check all the arguments, a player entered?
There is a solution! CommandFactory is a small but powerful library, which reduces each command into a single, tidy class. It takes care of parsing all the arguments and can handle required and optional args.
Why would you use it?
Because it takes almost no time to setup, and makes your life a whole lot easier. Check out these example below, which showcase a before & after situation.
TODO: Add images
Want to use it?
Awesome! Just visit the GitLab Page and read the README.md file. It explains everything you need to know and provides useful examples.
Additional Info
Please consider writing a review about this library.
If you have any issues or suggestions, please send them to me on my Discord / or post them into the discussion.
Please consider writing a review about this library.
If you have any issues or suggestions, please send them to me on my Discord / or post them into the discussion.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- 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.
CommandFactory [1.8-1.16] | Replace nasty onCommand methods with clean code. is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 167 times (via Spigot). Download it and open it directly in the game.