Skip to content

Latest commit

 

History

History
118 lines (90 loc) · 5.46 KB

cmi-parameters.md

File metadata and controls

118 lines (90 loc) · 5.46 KB

FAQ - CMI Aliaseditor Parameters Explained

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.

Note: Since CMI version 9.0.3.x you can create your own .yml files and store them in the ~/plugins/CMI/CustomAlias/ directory.


ℹ️ This is for /cmi aliaseditor

For CMI 9, let's you catch parameters entered in cmi aliaseditor made commands

You can then in the commands use $1 $5 $0 .. order doesn't matter. They're a reference to the stuff entered by the player, see example.

ℹ️ Example

Additional information about CMI's specialized commands and comparison operators can be found here: https://github.com/mrfdev/CMI/blob/master/Resources/FAQ/cmi-specialized.md

Server owner used /cmi aliaseditor to make a /fruit command

Player types:

/fruit banana apple superman

$1 == banana
$1- == banana apple superman

Please note that just the $1 refers to the first paramter, this can be null, or whatever the player entered. So use wisely.
Please note that the $1- has a dash behind it, referring to the first and every other parameter behind it. 

$0 == fruit (the command, without the / in front of it)

$1 == banana

$2 == apple

$3 == superman

$1- == banana apple superman

$4 == nothing there, so it is "null"

$1 $3 == banana superman

$0 $3 == fruit superman

$2- == apple superman


I hope this info helps!