CMI PlaceHolders

Jul 13, 2018 at 11:33 AM
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_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_kitcd_[kitName]% to show kit left cooldown time. Dash (-) will be shown if kit can be used.

    %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_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_worth_sell_[itemIdName:data]% to show items sell price from worth file.
    %cmi_worth_buy_[itemIdName:data]% to show items buy price from worth file.

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

    1. %cmi_user_charges_left%
    2. %cmi_user_charges_max%
    3. %cmi_user_charges_time%
    4. %cmi_user_charges_cooldown%
    5. %cmi_user_display_name%
    6. %cmi_user_nickname%
    7. %cmi_user_name%
    8. %cmi_user_cuffed%
    9. %cmi_user_god%
    10. %cmi_user_afk%
    11. %cmi_user_afk_symbol%
    12. %cmi_user_joinedcounter%
    13. %cmi_user_banned%
    14. %cmi_user_maxhomes%
    15. %cmi_user_homeamount%
    16. %cmi_user_vanished_symbol%
    17. %cmi_user_balance_formatted%
    18. %cmi_user_balance%
    19. %cmi_user_prefix%
    20. %cmi_user_suffix%
    21. %cmi_user_group%
    22. %cmi_user_tfly%
    23. %cmi_user_tfly_formatted%
    24. %cmi_user_tgod%
    25. %cmi_user_tgod_formatted%
    26. %cmi_user_votecount%
    27. %cmi_user_rank%
    28. %cmi_user_nextranks%
    29. %cmi_user_nextrankpercent%
    30. %cmi_user_nextvalidranks%
    31. %cmi_user_canrankup%
    32. %cmi_user_country%
    33. %cmi_user_country_code%
    34. %cmi_user_city%
    35. %cmi_user_jailname%
    36. %cmi_user_jailcell%
    37. %cmi_user_jailtime%
    38. %cmi_user_jailreason%
    39. %cmi_user_bungeeserver%
    40. %cmi_user_playtime_days%
    41. %cmi_user_playtime_dayst%
    42. %cmi_user_playtime_hours%
    43. %cmi_user_playtime_hoursf%
    44. %cmi_user_playtime_hourst%
    45. %cmi_user_playtime_minutes%
    46. %cmi_user_playtime_minutest%

    47. %cmi_iteminhand_displayname%
    48. %cmi_iteminhand_realname%
    49. %cmi_iteminhand_type%
    50. %cmi_iteminhand_itemdata%
    51. %cmi_iteminhand_amount%
    52. %cmi_iteminhand_worth%

    53. %cmi_baltop_name_[1-10]%
    54. %cmi_baltop_money_[1-10]%

    55. %cmi_worth_buy_[itemIdName: (data)]%
    56. %cmi_worth_sell_[itemIdName: (data)]%

    57. %player_world%
    58. %player_x%
    59. %player_y%
    60. %player_z%
    61. %vault_eco_balance_formatted%
    62. %server_online%
    63. %server_max_players%
    64. %server_unique_joins%
    65. %onlineplayers_names%
    66. %onlineplayers_displaynames%

    67. %cmi_random_player_name%
    68. %cmi_random_[from]_[to]%
    69. %cmi_user_rank_percent_[rankName]%
    70. %cmi_user_meta_[key]%
    71. %cmi_user_kitcd_[kitName]%
    72. %cmi_jail_time_[jailName]_[cellId]%
    73. %cmi_jail_username_[jailName]_[cellId]%
    74. %cmi_jail_reason_[jailName]_[cellId]%

    75. %server_time_[timeFormat]%
  • Loading...
  • Loading...