Skip to content

Latest commit

 

History

History
101 lines (88 loc) · 5.99 KB

cmi-commands.md

File metadata and controls

101 lines (88 loc) · 5.99 KB

FAQ - How do I deal with CMI commands?

FAQ Menu

Bungeecord-Info, • Chance-Example, • Chat-Format, • Chat-Manager, • Chat-Filter, • Chat-Rooms, • Commands-Manager, • Custom-Join-Leave, • Economy-Manager, • Extending-Commands, • Getting-Started, • Glow, • Custom-Help, • Hex-Colors, • Importing-Data, • CMILib, • LuckPerms-Prefix, • Migrate-Database, • Mode-Stuck, • More-Msg-Commands, • MOTD, • Parameters, • Ranks, • Custom-Rules, • Running-CMI, • Safety-Tips, • Social-Addon, • Specialized-Cmds, • Toggle-Example, • Trash, • Vote-Manager, • Worth.

Official Zrips Links
  • Zrips Website
    https://www.zrips.net/
    The official website, wiki/documentation/information
  • Zrips Discord
    https://discord.gg/dDMamN4
    The official Discord community server with member-driven support
  • Zrips Github
    https://github.com/Zrips
    The place for bug reports and feature suggestions
Prerequisites
  • Buy and Download CMI (premium plugin)
    https://www.spigotmc.org/resources/3742/
    Get the CMI plugin if you haven't already, and then Install it on all your servers
  • Also Download CMILib (free library) (more info)
    https://www.spigotmc.org/resources/87610/
    All Zrips plugins require the CMILib .jar file. Get it and also put it on all your servers.
  • All my FAQ pages have been written for Spigot / Paper 1.18.1 and CMI 9.1.1.1 or newer.
  • The mrfdev github page is not an official resource, we're sharing our knowledge as a courtesy.
  • I am a team member on the Zrips Discord, this does not mean what I share on here is official.

Both base commands and your own custom commands


ℹ️ CMI can handle Commands.

By default CMI has all it's commands underneath /cmi <command> you can find them all by typing: /cmi help and by viewing the list on the website here: (https://www.zrips.net/cmi/commands/) If you wish to use /<command> and not just /cmi <command>, then you can edit the Alias.yml file and toggle the false value to true.

# Random Example
# Enabling /home, so players don't have to type: /cmi home
# Find the /command and toggle it from false to true:

  # /cmi home $1-
  /home: true

You can now save the file and type: /cmi reload, but to properly register the commands a /stop and restart is required.

Another option is to add your own commands! For example: /banana. Note: Custom Alias (commands) are stored in the cmi file: CustomAlias.yml and from version 9.0.3.x upwards you can also store your own commands in their own .yml file in the ~/plugins/CMI/CustomAlias/ directory. To get started, In-game you type: /cmi aliaseditor new banana (obvious replace banana with the command you want) There will be a green + to press, it will now as you to enter a command to execute. Type (without the starting /) for example: cmi say I am a banana You can press the green + again to add another command. This feature is very extensive, dynamic, and you can learn much more about it here: (https://www.zrips.net/cmi/commands/custom-alias/)

The new (/banana) command might show red, but it will work. And the next time you restart the server it will properly register it and auto-complete as well. To edit existing custom alias commands, you can type: /cmi aliaseditor and then click on the command in the list.

A visual youtube tutorial can be found here https://www.youtube.com/watch?v=LN54XU12Zjc

  • And finally; /stop the server, and start it up again to guarantee that everything's working properly.