Locale file can contain PlaceholderAPI placeholders to be shown with CMI messages. Only placeholders starting with %cmi_ will be used by PlaceHolderAPI, but all of them can be used by CMI in most of places.

Placeholder inside another placeholder is possible too. In example %cmi_equationint_{cmi_user_maxperm_cmi.command.sethome_1}+1% which will mean that you have 2 placeholders and first one which will be processed is one which is enclosed with { and } which in this case returns max value by permission node. After that it will process as regular equation and will return its result. 

Some custom/none-static placeholders:

%cmi_user_kitcd_[kitName]% to show kit left cooldown time. Dash (-) will be shown if kit can be used.

%cmi_votetop_[1-10]% to show top 10 places by vote count.

%cmi_worth_buy_[itemIdName:data]% to show items buy price from worth file.
%cmi_worth_sell_[itemIdName:data]% to show items sell price from worth file.

%cmi_user_meta_[key]% to be used with custom placeholders. This is utilized by using /cmi usermeta [playerName] [add/remove/clear/list/increment] (key) (value) (-s) command, so by using /cmi usermeta Zrips add testkey Coffee and by utilizing %cmi_user_meta_testkey% across CMI or on another plugins, you will get result as Coffee. Amount of custom meta data one player can have is unlimited, but strongly recommended to keep in reasonable amounts.
Increment can be used to change number value. In example /cmi usermeta Zrips increment counting +0.5 will result in 0.5, while performing second time will result into 1. Negative numbers can be used to take out value.
%cmi_user_metaint_[key]% which will try to output meta value as integer value.

%cmi_jail_reason_[jailName]_[cellid]% to show player jail reason if it was defined when jailing by particular jail and cell id. If there are more than 1 player inside one cell, then most recent will be shown.
%cmi_jail_time_[jailName]_[cellid]% to show time left in jail by particular jail and cell id. If there are more than 1 player inside one cell, then most recent will be shown.
%cmi_jail_username_[jailName]_[cellid]% to show player name in jail by particular jail and cell id. If there are more than 1 player inside one cell, then most recent will be shown.

%cmi_user_maxperm_[corePerm]_[defaultValue]% – gets max possible from permission. In example if player has permissions:

  • cmi.command.sethome.1 
  • cmi.command.sethome.3 
  • cmi.command.sethome.4 

Then placeholder like %cmi_user_maxperm_cmi.command.sethome_0% will return 4. While 0 is default value in case player doesn’t have any permission node like that with value.

If you have placeholder with default value higher then what player has, then default value will be used. In this case if you would used %cmi_user_maxperm_cmi.command.sethome_6% placeholder, it would returned 6 instead of 4

%cmi_random_[from]_[to]% will return random value between provided ones. In example %cmi_random_1_5% can return values: 1 2 3 4 5

This can be used in some specialized commands to get random results when performing it

Placeholders oriented around bungee network. For best results you will need to setup information about your servers in the network. Check out config.yml file under BungeeCord section.

%cmi_bungee_total_[serverName]% – Returns max online number for that server

%cmi_bungee_current_[serverName]% – Returns current player count

%cmi_bungee_motd_[serverName]% – Returns motd of that server

%cmi_bungee_onlinestatus_[serverName]% – Returns Online/Offline status of server

%cmi_equation_[equation]% or %cmi_equationint_[equation]% will process mathematical equation and returns result. In first case it can be with decimal like 2.4 and in second case it returns full number only like 2

Equations can be as simple as 2+2 and as complex as sin(6)+pi*tan(5)/1.5

Static placeholders which can be checked in-game with /cmi placeholders command, which will show examples with possible output values:

  • %cmi_user_charges_left%
  • %cmi_user_charges_max%
  • %cmi_user_charges_time%
  • %cmi_user_charges_cooldown%
  • %cmi_user_display_name%
  • %cmi_user_nickname%
  • %cmi_user_name%
  • %cmi_user_cuffed%
  • %cmi_user_muted%
  • %cmi_user_inpvp%
  • %cmi_user_god%
  • %cmi_user_afk%
  • %cmi_user_afk_symbol%
  • %cmi_user_joinedcounter%
  • %cmi_user_banned%
  • %cmi_user_maxhomes%
  • %cmi_user_homeamount%
  • %cmi_user_vanished_symbol%
  • %cmi_user_balance_formated%
  • %cmi_user_balance_formatted%
  • %cmi_user_balance%
  • %cmi_user_prefix%
  • %cmi_user_suffix%
  • %cmi_user_nameplate_prefix%
  • %cmi_user_nameplate_suffix%
  • %cmi_user_group%
  • %cmi_user_tfly%
  • %cmi_user_tfly_formated%
  • %cmi_user_tfly_formatted%
  • %cmi_user_tgod%
  • %cmi_user_tgod_formated%
  • %cmi_user_tgod_formatted%
  • %cmi_user_votecount%
  • %cmi_user_rank%
  • %cmi_user_nextranks%
  • %cmi_user_nextrankpercent%
  • %cmi_user_nextvalidranks%
  • %cmi_user_canrankup%
  • %cmi_user_country%
  • %cmi_user_country_code%
  • %cmi_user_city%
  • %cmi_user_jailname%
  • %cmi_user_jailcell%
  • %cmi_user_jailtime%
  • %cmi_user_jailreason%
  • %cmi_user_bungeeserver%
  • %cmi_user_playtime_days%
  • %cmi_user_playtime_dayst%
  • %cmi_user_playtime_hours%
  • %cmi_user_playtime_hoursf%
  • %cmi_user_playtime_hourst%
  • %cmi_user_playtime_minutes%
  • %cmi_user_playtime_minutest%
  • %cmi_user_maxperm_[corePerm]_[defaultValue]%
  • %cmi_equation_[equation]%
  • %cmi_equationint_[equation]%
  • %cmi_iteminhand_displayname%
  • %cmi_iteminhand_realname%
  • %cmi_iteminhand_type%
  • %cmi_iteminhand_itemdata%
  • %cmi_iteminhand_amount%
  • %cmi_iteminhand_worth%
  • %cmi_schedule_nextin_[schedName]%
  • %cmi_baltop_name_[1-10]%
  • %cmi_baltop_money_[1-10]%
  • %cmi_votetop_[1-10]%
  • %cmi_worth_buy_[itemIdName(:data)]%
  • %cmi_worth_sell_[itemIdName(:data)]%
  • %cmi_bungee_total_[serverName]%
  • %cmi_bungee_current_[serverName]%
  • %cmi_bungee_motd_[serverName]%
  • %cmi_bungee_onlinestatus_[serverName]%
  • %player_world%
  • %player_x%
  • %player_y%
  • %player_z%
  • %player_biome%
  • %vault_eco_balance_formatted%
  • %server_online%
  • %server_max_players%
  • %server_unique_joins%
  • %onlineplayers_names%
  • %onlineplayers_displaynames%
  • %cmi_random_player_name%
  • %cmi_random_[from]_[to]%
  • %cmi_user_rank_percent_[rankName]%
  • %cmi_user_meta_[key]%
  • %cmi_user_metaint_[key]%
  • %cmi_user_kitcd_[kitName]%
  • %cmi_jail_time_[jailName]_[cellId]%
  • %cmi_jail_username_[jailName]_[cellId]%
  • %cmi_jail_reason_[jailName]_[cellId]%
  • %server_time_[timeFormat]%