CMI PlaceHolders

Jan 28, 2019
CMI PlaceHolders
  • [​IMG]

    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.

    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_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_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.

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

    CMI Baltop
    - %cmi_baltop_money_[1-10]%
    - %cmi_baltop_name_[1-10]%


    CMI Bungee
    - %cmi_bungee_current_[serverName]%
    - %cmi_bungee_motd_[serverName]%
    - %cmi_bungee_onlinestatus_[serverName]%
    - %cmi_bungee_total_[serverName]%


    CMI Item
    - %cmi_iteminhand_amount%

    - %cmi_iteminhand_displayname%
    - %cmi_iteminhand_itemdata%
    - %cmi_iteminhand_realname%
    - %cmi_iteminhand_type%
    - %cmi_iteminhand_worth%

    CMI Jail
    - %cmi_jail_reason_[jailName]_[cellId]%
    - %cmi_jail_time_[jailName]_[cellId]%
    - %cmi_jail_username_[jailName]_[cellId]%


    CMI Random
    - %cmi_random_player_name%
    - %cmi_random_[from]_[to]%


    CMI Schedule
    - %cmi_schedule_nextin_[schedName]%


    CMI User
    - %cmi_user_afk%
    - %cmi_user_afk_symbol%
    - %cmi_user_balance%
    - %cmi_user_balance_formatted%
    - %cmi_user_banned%
    - %cmi_user_bungeeserver%
    - %cmi_user_canrankup%

    - %cmi_user_charges_cooldown%

    - %cmi_user_charges_left%
    - %cmi_user_charges_max%
    - %cmi_user_charges_time%
    - %cmi_user_city%
    - %cmi_user_country%
    - %cmi_user_country_code%
    - %cmi_user_cuffed%

    - %cmi_user_display_name%
    - %cmi_user_god%
    - %cmi_user_group%
    - %cmi_user_homeamount%
    - %cmi_user_inpvp%
    - %cmi_user_jailcell%
    - %cmi_user_jailname%
    - %cmi_user_jailreason%

    - %cmi_user_jailtime%
    - %cmi_user_joinedcounter%
    - %cmi_user_kitcd_[kitName]%
    - %cmi_user_maxhomes%
    - %cmi_user_meta_[key]%
    - %cmi_user_metaint_[key]%
    - %cmi_user_muted%

    - %cmi_user_name%
    - %cmi_user_nameplate_prefix%
    - %cmi_user_nameplate_suffix%
    - %cmi_user_nextrankpercent%
    - %cmi_user_nextranks%
    - %cmi_user_nextvalidranks%

    - %cmi_user_nickname%
    - %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_prefix%
    - %cmi_user_rank%
    - %cmi_user_rank_percent_[rankName]%

    - %cmi_user_suffix%
    - %cmi_user_tfly%
    - %cmi_user_tfly_formatted%
    - %cmi_user_tgod%
    - %cmi_user_tgod_formatted%

    - %cmi_user_vanished_symbol%

    - %cmi_user_votecount%

    CMI Votetop
    - %cmi_votetop_[1-10]%


    CMI Worth
    - %cmi_worth_buy_[itemIdName: (data)]%
    - %cmi_worth_sell_[itemIdName: (data)]%

    Online Players
    - %onlineplayers_displaynames%
    - %onlineplayers_names%


    Player
    - %player_biome%
    - %player_world%
    - %player_x%
    - %player_y%
    - %player_z%

    Server
    - %server_online%
    - %server_max_players%
    - %server_time_[timeFormat]%
    - %server_unique_joins%

    Vault
    - %vault_eco_balance_formatted%
  • Loading...
  • Loading...