An easy to use library that helps developers create commands as easy as they create event handlers. The goal for this project is to have a user friendly front end and simple-to-setup back end. The developer doesn't need to worry about sub commands, help messages, incorrect sender messages or permission messages.
Features:
https://github.com/MrBlobman/SpigotCommandLib/wiki
Check out the source and some example commands:
https://github.com/MrBlobman/SpigotCommandLib/tree/master#spigotcommandlib
Command arguments can have spaces if wrapped in quotes
Beautiful help messages:
... that are clickable:
![[IMG]](//proxy.spigotmc.org/5b4668090d7b8fb0c41cab5cb845d625a1642e65?url=https%3A%2F%2Fi.gyazo.com%2Fb7819490c75f6e832c68ce166d2e791b.png)
Features:
- SubCommand support with multiple aliases per command section.
- String arguments with spaces can easily be given by wrapping the single String in "". Ex: /cmd "This is one argument"
- 3 command models including fragmented commands for polymorphic commands based on the executors state.
- Pre-Parsed argument types allowing you to specify the type of each additional argument in your command
- Automatically hooks into the default /help menu
- Intuitive and automatic messages when:
- An argument is the wrong type (should be an int but was a boolean)
- A command can only be executed by a Player but the CommandSender is not a Player
- An unknown sub command is given
- The player doesn't have permission to use the command
- An incorrect number of arguments is given
- 1.8 help messages taking advantage of command suggestion, clickable text and hoverable text to greatly improve help messages
https://github.com/MrBlobman/SpigotCommandLib/wiki
Check out the source and some example commands:
https://github.com/MrBlobman/SpigotCommandLib/tree/master#spigotcommandlib
Command arguments can have spaces if wrapped in quotes
Beautiful help messages:
... that are clickable:
![[IMG]](http://proxy.spigotmc.org/5b4668090d7b8fb0c41cab5cb845d625a1642e65?url=https%3A%2F%2Fi.gyazo.com%2Fb7819490c75f6e832c68ce166d2e791b.png)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- 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.
SpigotCommandLib is a free Minecraft Java mod. Downloaded 260 times (via Spigot). Download it and open it directly in the game.