### LuckPerms Prefix Configuration Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-luckperms-prefix.md Examples of setting prefixes for LuckPerms groups. These can be applied via console, in-game commands, or the LP editor. ```bash prefix.14.&c(owner) prefix.6.&6[VIP] ``` -------------------------------- ### Item Worth Configuration Examples Source: https://github.com/mrfdev/cmi/blob/master/Resources/Alternatives/CMI-worth_1.21.1.md Examples of item IDs and their corresponding worth values in CMI. These are typically configured in a data file. ```properties YELLOW_CONCRETE_POWDER: '0.01' YELLOW_DYE: '0.01' YELLOW_GLAZED_TERRACOTTA: '0.01' YELLOW_SHULKER_BOX: '0.01' YELLOW_STAINED_GLASS: '0.01' YELLOW_STAINED_GLASS_PANE: '0.01' YELLOW_TERRACOTTA: '0.01' YELLOW_WOOL: '0.01' ZOGLIN_SPAWN_EGG>ZOGLIN: '0.01' ZOMBIE_HEAD: '0.01' ZOMBIE_HORSE_SPAWN_EGG>ZOMBIE_HORSE: '0.01' ZOMBIE_SPAWN_EGG>ZOMBIE: '0.01' ZOMBIE_VILLAGER_SPAWN_EGG>ZOMBIE_VILLAGER: '0.01' ZOMBIFIED_PIGLIN_SPAWN_EGG>ZOMBIFIED_PIGLIN: '0.01' ``` -------------------------------- ### Interactive Sign Configuration Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-trash.md This is an example of the 'Saves/interactiveCommands.yml' file for a trash sign. It shows the configured locations, commands, sign lines, and public status. ```yaml trash: Locations: - world;12032.0;65.0;19098.0 - world;-12601.0;63.0;-12149.0 Commands: - click:rightclick! asConsole! cmi dispose [playerName] SignLines: - '{#magenta}[trash]' - ' ~ ~ ~ ' - '{#orange}Warning:' - '{#black}There's no undo!' Public: true ReqPerm: false ``` -------------------------------- ### Target Player for Placeholders and Conditions Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/ingame-docs/cmi_specializedcmds.txt If the command starts with ptarget:[name]!, the target player will be used when replacing placeholders or checking conditions. It is only usable from the console. Example: ptarget:$1! lp user $1 permission set cmi.command.sethome.%cmi_equationint_{cmi_user_maxperm_cmi.command.sethome_1}+1% - will give a player 1 more home, for example if you have a custom alias /givehomes, the syntax could be /givehomes Zrips. ```minecraft-commands ptarget:[name]! ``` -------------------------------- ### Example Custom Text File Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-motd.md This is an example of basic text content for a custom text file used by CMI. It supports color codes and placeholders. ```yaml &3 Your Server »&b %server_online%/%server_max_players%&7 players: %onlineplayers_displaynames% ``` -------------------------------- ### Example First Join Server Configuration Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-motd.md Configuration for enabling and defining commands to be executed when a player joins the server for the first time. This section is from the eventCommands.yml file. ```yaml firstJoinServer: Enabled: false Commands: ``` -------------------------------- ### LuckPerms Editor Session Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-luckperms-prefix.md Demonstrates an interactive LuckPerms editor session, showing user info before and after applying edits, including prefix changes. ```bash > lp editor [LP] Preparing a new editor session, please wait... [LP] Click the link below to open the editor: https://luckperms.net/editor/C0xRbDj9T1 > lp user mrfloris info [LP] > User Info: mrfloris [LP] - UUID: 631e3896-da2a-4077-974b-d047859d76bc [LP] (type: mojang) [LP] - Status: Offline [LP] - Parent Groups: [LP] > 1mb_owner [LP] - Contextual Data: (mode: server) [LP] Contexts: None [LP] Prefix: "" [LP] Suffix: None [LP] Primary Group: 1mb_owner [LP] Meta: (weight=14) (primarygroup=1mb_owner) > lp applyedits AgHNFd5TCt [LP] Web editor data was applied to group 1mb_owner successfully. [LP] (1 addition and 1 deletion) + prefix.14.&4(Owner) (true) - prefix.14.&4 (true) > lp user mrfloris info [LP] > User Info: mrfloris [LP] - UUID: 631e3896-da2a-4077-974b-d047859d76bc [LP] (type: mojang) [LP] - Status: Offline [LP] - Parent Groups: [LP] > 1mb_owner [LP] - Contextual Data: (mode: server) [LP] Contexts: None [LP] Prefix: "(Owner)" [LP] Suffix: None [LP] Primary Group: 1mb_owner [LP] Meta: (weight=14) (primarygroup=1mb_owner) > ``` -------------------------------- ### Custom Default List Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/Alternatives/CMI-worth_1.21.1.md Example configuration for a custom 'default' list in worth.yml. All items are set to a default value of 0.01. ```yaml default: # Example items with default value item1: 0.01 item2: 0.01 item3: 0.01 ``` -------------------------------- ### CMI Global Commands Presets Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/globalcommand/README.md Examples of preset global commands that can be added to the CMI add-on for server-wide execution. ```text /gcmd tfly Give all players temp fly for x seconds ``` ```text /gcmd tgod Give all players temp immortality (god mode) for x seconds ``` ```text /gcmd launch Fling all the players into the air at an angle (there shouldn't be damage on landing) ``` ```text /gcmd mobs Type can be blaze, creeper, or zombie. Of course you can add your own. This will load 3 of them in a range around the player, and tries to target that player. ``` ```text /gcmd msg This will send a /cmi msg to all players in a fixed format. Kinda useless, if it is a msg to all, you might as well use /cmi broadcast of course, but for demo purposes I've included it. ``` -------------------------------- ### Custom Help Command Alias Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-help.md This example shows how to create aliases for custom help texts, including options for console execution and permission-based access for different player groups. ```yaml - cmi ctext help2 [playerName] - asConsole! perm:custom.help.vip! cmi ctext helpvip [playerName] - asConsole! perm:custom.help.staff! cmi ctext helpstaff [playerName] ``` -------------------------------- ### Example worth.yml Configuration Source: https://github.com/mrfdev/cmi/blob/master/Resources/Alternatives/CMI-enchantments-worth.md This snippet shows the format for setting the worth of an enchanted book in the worth.yml file. It specifies the enchantment, its level, and its monetary value. ```yaml ENCHANTED_BOOK>MENDINGx1: '1000.0' ``` -------------------------------- ### Default CMI config.yml Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/Alternatives/CMI-config-clean.md This snippet shows the beginning of the default CMI config.yml file. It includes settings for language selection and automatic locale file downloads. ```yaml # ******************************************** # ** For more options check Settings folder ** # ******************************************** # Language file you want to use Language: EN # Defines if you want to auto download default locale files from github repository ``` -------------------------------- ### CMI Configuration Files Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-gettingstarted.md Key configuration files to review and modify for CMI setup. ```yaml config.yml (main configuration file, nitpick on features here) Settings/Modules.yml (allowing you to globally turn on/off about 50 bigger features) ``` -------------------------------- ### General Toggle Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-toggle-examples.md This snippet demonstrates a general toggle mechanism using CMI user meta. It initializes meta values if they don't exist and then toggles a state based on the current value. ```yaml # First two lines adds the required meta values to the player, if they haven't been created before. # This can also be done using an OnJoinEvent from eventcommands. # State is the current state of the toggle, The name means nothing, and can be replaced with whatever you want(Can also be the current rank of the user). # The toggle usermeta, has to be a meta data value. # It is recommended to only have one, and then use that for every command, to limit the amount of usermeta needed. - check:%cmi_user_meta_State%==null! asConsole! usermeta [playerName] add State 1 - check:%cmi_user_metaint_toggle%==null! asConsole! usermeta [playerName] add toggle 0 # The messages can be replaced with whatever command you want to run. (Either permissions change or something like that.) - check:%cmi_user_meta_State%==1! asConsole! msg [playerName] 1 - check:%cmi_user_meta_State%==0! asConsole! msg [playerName] 0 # The following contains the actual checks. # Firstly, it checks the current state, and depending on that, uses usermeta to decide whether or not the value should be toggled. - check:%cmi_user_meta_State%==1! asConsole! usermeta [playerName] add State 1 - check:%cmi_user_meta_toggle%==1! asConsole! usermeta [playerName] add toggle 0 - check:%cmi_user_meta_toggle%==0! asConsole! usermeta [playerName] add toggle 1 #Resets the toggle when done. - asConsole! usermeta [playerName] add State 0 ``` -------------------------------- ### Recommended StatsRequirements Formatting Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-ranks.md This example demonstrates the recommended formatting for StatsRequirements in Ranks.yml. Use double quotes for all requirements and ensure no leading/trailing spaces in keys or values. ```yaml StatsRequirements: - "PlayTime:21600" - "walk:30000" - "MonsterKills:1000" - "blocksmined:30000" ``` -------------------------------- ### Flashlight Toggle Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-toggle-examples.md This snippet implements a flashlight toggle using CMI user meta and effects. It allows players to turn night vision on and off via the /flashlight command. ```yaml flashlight: Cmds: - check:%cmi_user_meta_flashlightToggle%==null! asConsole! cmi usermeta [playerName] add flashlightToggle off - check:%cmi_user_meta_flashlightState%==null! asConsole! cmi usermeta [playerName] add flashlightState off - check:%cmi_user_meta_flashlightState%==off! check:%cmi_user_meta_flashlightToggle%==off! asConsole! cmi effect [playerName] night_vision 999 1 - check:%cmi_user_meta_flashlightState%==off! check:%cmi_user_meta_flashlightToggle%==off! asConsole! cmi usermeta [playerName] add flashlightToggle on - check:%cmi_user_meta_flashlightState%==on! check:%cmi_user_meta_flashlightToggle%==on! asConsole! cmi effect [playerName] night_vision 1 1 - check:%cmi_user_meta_flashlightState%==on! check:%cmi_user_meta_flashlightToggle%==on! asConsole! cmi usermeta [playerName] add flashlightToggle off - check:%cmi_user_meta_flashlightState%==off! check:%cmi_user_meta_flashlightToggle%==on! asConsole! cmi usermeta [playerName] add flashlightState on - check:%cmi_user_meta_flashlightState%==on! check:%cmi_user_meta_flashlightToggle%==off! asConsole! cmi usermeta [playerName] add flashlightState off Tab: false ``` -------------------------------- ### Give Item Based on Chance Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-chance.md This example shows how to give a player a specific item based on a randomized chance. It sets a user meta for random chance and then uses check commands to determine which item to give. This is useful for creating random loot drops or rewards. ```yml giverandomitems: Cmds: - asConsole! cmi usermeta [playerName] remove randomchance -s - asConsole! cmi usermeta [playerName] add randomchance %cmi_random_1_100% -s - asConsole! cmi ctellraw [playerName] &aYour random chance number was %cmi_user_meta_randomchance% - check:%cmi_user_meta_randomchance%<20! asConsole! give [playerName] diamond - check:%cmi_user_meta_randomchance%>=20#! - check:%cmi_user_meta_randomchance%<40! asConsole! give [playerName] gold_ingot - check:%cmi_user_meta_randomchance%>=40#! - check:%cmi_user_meta_randomchance%<60! asConsole! give [playerName] emerald - check:%cmi_user_meta_randomchance%>=60#! - check:%cmi_user_meta_randomchance%<80! asConsole! give [playerName] redstone - check:%cmi_user_meta_randomchance%>=80#! - check:%cmi_user_meta_randomchance%<=100! asConsole! give [playerName] oak_planks ``` -------------------------------- ### Start Player Counter Source: https://github.com/mrfdev/cmi/blob/master/Resources/Alternatives/CMI-commands-clean.md Starts a counter for surrounding players, with options for time, range, coordinates, and custom messages. Can be forced. ```minecraft-commands /cmi counter [join/leave/start] (t:time) (r:[range/-1]) (c:[world:x:y:z]) (msg:custom_message) (-f) ``` -------------------------------- ### Build Plugin with Gradle Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/CMIPlaceholderExploit_v1_0_2/README.md Use this command to clean and build the plugin using Gradle. ```bash gradle clean build ``` -------------------------------- ### Configure First Join Server Rules Reminder Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-rules.md Customize the 'firstJoinServer' section in 'Settings/eventCommands.yml' to automatically send the rules to new players upon joining. ```yaml firstJoinServer: Enabled: true Commands: - cmi ctext rules [playerName] ``` -------------------------------- ### Custom Clearchat Command Example Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-extending-commands.md This example demonstrates a custom 'clearchat' command that extends CMI's functionality. It includes conditional command execution based on arguments, console and player commands, broadcast messages, and custom tab completions for various scenarios. ```yaml clearchat: Cmds: - check:$2==inform! asConsole! cmi sound block_anvil_land -all - asPlayer! cmi clearchat - check:$1==selfclear! asPlayer! cmi clearchat self - asConsole! cmi broadcast !&r {#orange}----------------------------------- &r - check:$2==inform! check:$3==null! asConsole! cmi broadcast !{#cerulean} •&l&m &r{#cerulean}• {#feijoa}The chat has been cleared {#cerulean} •&l&m &r{#cerulean}• - check:$2==inform! check:$3==tellstaff! asConsole! cmi broadcast !{#cerulean} •&l&m &r{#cerulean}• {#feijoa}The chat has been cleared {#cerulean} •&l&m &r{#cerulean}• - check:$2==inform! check:$3==tellall! asConsole! cmi broadcast !{#cerulean} •&l&m &r{#cerulean}• {#feijoa}The chat has been cleared {#cerulean} •&l&m &r{#cerulean}• ($4) - asPlayer! cmi staffmsg {#feijoa}Cleaned up chat, reason:{#cerulean}&l $4- - asConsole! cmi broadcast !&r {#orange}----------------------------------- &r Perm: true CustomTabs: - selfclear,selfkeep inform,quiet tellall,tellstaff noreason,user-drama,user-swearing,user-hatespeech,event,broadcast [playername] ``` -------------------------------- ### Download and Reload LuckPerms Extension Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-luckperms-prefix.md Use these console commands to download the LuckPerms extension for PlaceholderAPI and then reload PAPI to apply the changes. ```bash papi ecloud download LuckPerms papi reload ``` -------------------------------- ### Send Subtitle Message with CMI Source: https://github.com/mrfdev/cmi/blob/master/live-1mb-3.10.0.2-mc-1.21.10/plugins/CMI/CustomText/cmi_specializedcmds.txt If the command starts with subtitle!, the given message will be sent to all online players as a subtitle. ```cmi %cmi_user_group% ``` -------------------------------- ### Send Message to Player with CMI Source: https://github.com/mrfdev/cmi/blob/master/live-1mb-3.10.0.2-mc-1.21.10/plugins/CMI/CustomText/cmi_specializedcmds.txt If the command starts with msg! and a player name is given, a message will be sent to the player if they are online. ```cmi msg! ``` -------------------------------- ### Setting Enchantment Worth Source: https://github.com/mrfdev/cmi/blob/master/Resources/Alternatives/CMI-worth_1.21.1.md Configure the worth of enchantments in CMI. This example shows how to set a range for fire protection enchantment worth. ```yaml enchantWorth: protection_fire: - 0-100.0 - 1-100.0 ``` -------------------------------- ### Connect to VPS via SSH CLI Source: https://github.com/mrfdev/cmi/blob/master/Resources/Docs/ssh.md Use this command in your local terminal to connect to your VPS. Replace 'username' with your VPS username and 'server_ip' with its IP address. ```bash ssh username@server_ip ``` -------------------------------- ### CMI Special Command Keywords Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-specialized.md Examples of CMI specialized commands that do not take a condition and do not use the ':' syntax. These include 'asPlayer!', 'asConsole!', and 'delay!'. ```yml - asPlayer! warp spawn - delay! 2.5 - asConsole! cmi heal [playerName] ``` -------------------------------- ### Example CMI Custom Alias Commands Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/social/README.md This list outlines the social commands provided by the add-on. These can be customized using CMI's aliaseditor. ```plaintext - /social - /social gui - /website (and /site, /sites, /web -> /sites) - /forum (and /forums -> /forum) - /discord - /twitter - /reddit - /contact (and /email -> /contact) - /facebook (and /fb -> /facebook) - /instagram (and /insta, /ig -> /instagram) - /snapchat (and /snap -> /snapchat) - /youtube (and /yt -> /youtube) - /teamspeak (and /ts -> /teamspeak) - /skype - /irc (and /chat -> discord?irc) - /store (and /shop, /shops, /buy -> /store) - /tiktok - /twitch - /github - /live (and /livestream, /streaming -> /live) - /requestsocial (mail for player, to request their own social command) - /bcsocial (announcer that shouts to ppl "we went live" " we . are streaming on /twitch" , etc. ``` -------------------------------- ### Find users by partial name (multiple matches) Source: https://github.com/mrfdev/cmi/wiki/finduser Demonstrates the output when multiple users match the provided partial username string. ```bash $ ./finduser.sh boi 1594aa76-6ce0-46f6-90b2-83896a829db8|ImAVeryFatBoi d4fe68d0-06c4-41b3-8f0a-f148752ac16f|TheLoliBoiii 73114a6a-7ac9-44a8-af02-227a6e6c3690|dominboiii $ ``` -------------------------------- ### Experience Cost for Command Execution Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/ingame-docs/cmi_specializedcmds.txt Use 'expcost:[value]!' to execute a command only if the player has enough experience points. The specified amount of EXP will be consumed. ```cmi expcost:[value][?][#]! ``` -------------------------------- ### CMI Global Commands Permission Node Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/globalcommand/README.md The required permission node for users to access the /gcmd command. This example shows how to set it using LuckPerms. ```text cmi.customalias.gcmd ``` ```text /lp user bobby permission set cmi.customalias.gcmd true ``` -------------------------------- ### Check Available Commands for God Mode Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-mode-stuck-on-join.md Lists the available commands related to god mode, including setting it on/off and temporary god mode. Useful for confirming command syntax and availability. ```yml > cmi checkcommand god [INFO]: -------------------------------------------------- [INFO]: 1. search [INFO]: 2. tgod [playerName] (timeInSec) (-s) [INFO]: 3. god [playerName] (true/false) (-s) > ``` -------------------------------- ### Enable CMI Maintenance Mode Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-import.md Enable maintenance mode before starting data imports to prevent players from logging in. This ensures a stable environment for data migration. ```bash /cmi maintenance true Working on the server, back later /stop ``` -------------------------------- ### CMI Check for Empty Results Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-specialized.md Examples demonstrating how to check for null or empty parameters in CMI specialized commands using 'null' or '[empty]' as comparison values. ```yml - check:$1==null! msg! [playerName] Please provide an argument - check:something==[empty]! msg! [playerName] Your argument was empty ``` -------------------------------- ### Activate 7x Booster for 3 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate a 7x mcMMO booster for 3 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 7 3 ``` -------------------------------- ### Activate 5x Booster for 20 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate a 5x mcMMO booster for 20 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 5 20 ``` -------------------------------- ### Configure Join Welcome Message Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-motd.md This snippet configures the welcome message that appears when a player joins the server. It includes options for enabling the message, setting its content, and specifying if it should be broadcast to all players. ```yaml join: # Whether to enable the join message. enable: true # The message that will be displayed when a player joins. # You can use color codes and placeholders here. message: "&a%player% has joined the server!" # Whether to broadcast the join message to all players. broadcast: true ``` -------------------------------- ### CMI Null Check Syntax Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-parameters.md Shows how to use the `check:!` operator to check if a parameter is null. This example displays a message to the player if the first parameter is null. ```yml check:$1==null! asConsole! cmi msg [playerName] {#orange} - Syntax is /$0 ``` -------------------------------- ### Check Migrate Database Permission Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-migrate-database.md Verify the permission required for the database migration command. ```bash > cmi checkperm migrate -------------------------------------------------- 1. cmi.command.migratedatabase - Changes database system and migrates all data > ``` -------------------------------- ### Assigning GroupFormat Permissions Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-chat-format.md Commands to grant LuckPerms permissions for CMI chat groups. Each group ID (1-5 in this example) requires a corresponding permission node. ```bash lp group default permission set cmi.chatgroup.1 true lp group vip permission set cmi.chatgroup.2 true lp group donor permission set cmi.chatgroup.3 true lp group mod permission set cmi.chatgroup.4 true lp group admin permission set cmi.chatgroup.5 true ``` -------------------------------- ### Activate 8x Booster for 5 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate an 8x mcMMO booster for 5 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 8 5 ``` -------------------------------- ### Activate 5x Booster for 5 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate a 5x mcMMO booster for 5 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 5 5 ``` -------------------------------- ### CMI Conditional Checks Examples Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-specialized.md Demonstrates various conditional checks that can be used in CMI commands. Each line is evaluated independently, and the command following the '!' is executed only if the check is true. ```yml - check:[playerName]==Notch! msg! [playerName] This command get executed because your name is "Notch". - check:[playerName]!=Notch! msg! [playerName] This command get executed because you are not "Notch". - check:%cmi_user_balance%>1000! msg! [playerName] This command get executed because your cmi /balance is more than 1000. - check:%cmi_user_balance%=<1000! msg! [playerName] This command get executed because your cmi /balance is less than or equal to 1000. ``` -------------------------------- ### Find user by partial name Source: https://github.com/mrfdev/cmi/wiki/finduser Searches the CMI database for users whose names contain the provided string. This example shows finding 'mrfloris' with the input 'floris'. ```bash $ ./finduser.sh floris 631e3896-da2a-4077-974b-d047859d76bc|mrfloris $ ``` -------------------------------- ### Activate 7x Booster for 7 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate a 7x mcMMO booster for 7 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 7 7 ``` -------------------------------- ### Operator: Negation Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/ingame-docs/cmi_specializedcmds.txt If a specialized command contains @, the opposite condition will be checked. Example: perm:cmi.testperm@! cmi heal [&fplayerName] - only heals the player if they don't have the cmi.testperm permission node. ```minecraft-commands @ ``` -------------------------------- ### CMI Parameter Expansion Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-parameters.md Demonstrates how CMI expands command parameters. Use $1 for the first parameter and $1- for the first parameter and all subsequent ones. $0 refers to the command itself. ```text 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 ``` -------------------------------- ### Activate 8x Booster for 2 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate an 8x mcMMO booster for 2 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 8 2 ``` -------------------------------- ### Enable CMI Economy in config.yml Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-economy.md Configure the main economy settings in the `config.yml` file. Ensure the server is restarted after changes for them to take effect. ```yaml Economy: # Enable or disable CMI economy in general # In case CMIInjector is present, then this will be set to true automatically. # Attention! For economy to work properly with other plugins you will need ether an injector or recompiled Vault version. # You can find both option at top of plugins page # ATTENTION! If you disabled CMI economy while server was running, you will need to perform full server restart for this to take correct effect and avoid any issues while getting players balances Enabled: true ``` -------------------------------- ### Item Requirement for Command Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/ingame-docs/cmi_specializedcmds.txt Use 'item:[value]!' to ensure a command is performed only if the player has the required amount of a specific item. Example: 'item:stone:1-12!' requires 12 stone blocks. ```cmi item:[value][?][#]! ``` -------------------------------- ### Grant Booster Permissions to Admins Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/readme.md Grant specific groups or users permission to use the mcMMO boosters menu. This example shows granting access to the '1mb_admin' group and an individual user. ```bash lp group 1mb_admin permission set cmi.customalias.mcmmoboosters true # Or per user: lp user mrfloris permission set cmi.customalias.mcmmoboosters true ``` -------------------------------- ### Activate 3x Booster for 10 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate a 3x mcMMO booster for 10 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 3 10 ``` -------------------------------- ### CMI Specialized Command Syntax Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-specialized.md Examples of CMI specialized commands using keywords like 'check' and 'perm' followed by a condition and ending with '!'. These commands execute based on a true/false logical outcome. ```yml - check:%placeholder%==banana! msg! [playerName] It's a banana! - perm:cmi.something.permname! msg! [playerName] You have the right permissions! ``` -------------------------------- ### Activate 2x Booster for 15 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate a 2x mcMMO booster for 15 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 2 15 ``` -------------------------------- ### Incorrect StatsRequirements Formatting Source: https://github.com/mrfdev/cmi/blob/master/Resources/FAQ/cmi-ranks.md This example shows incorrect formatting for StatsRequirements in Ranks.yml. Avoid spaces in requirement keys and use single quotes for string values if necessary, but double quotes are preferred. ```yaml StatsRequirements: - PlayTime:21600 - walk:30000 - 'MonsterKills : 1000' - "blocksmined: 30000" ``` -------------------------------- ### Activate 2x Booster for 45 Minutes Source: https://github.com/mrfdev/cmi/blob/master/Resources/Add-ons/mcmmoboosters/CustomText/mcmmo-boosters.txt Use this command to activate a 2x mcMMO booster for 45 minutes. Ensure you have the necessary permissions. ```command mcmmo -booster [playerName] 2 45 ```