can't use temporary variables in iconmenu #384


Open
  • althoryx created this issue Sep 7, 2025

    I use it for the correct display of %parseother_unsafe_{$toptime1}_{statistic_hours_played}%, because if I insert %playerlist_time_0% directly into the player name field, it shows 0.

    top:
    command: /top
    type: ICON_MENU
    text:
    - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
    iconmenu_title: 'Топы игроков'
    iconmenu_size: 45
    iconmenu_commands:
    - '%TempVariable%$toptime1=[Replace]%playerlist_time_0%'
    - '%TempVariable%$toptime2=[Replace]%playerlist_time_1%'
    - '%TempVariable%$toptime3=[Replace]%playerlist_time_2%'
    - '%TempVariable%$toptime4=[Replace]%playerlist_time_3%'
    - '%TempVariable%$toptime5=[Replace]%playerlist_time_4%'
    - '%TempVariable%$toptime6=[Replace]%playerlist_time_5%'
    - '%TempVariable%$toptime7=[Replace]%playerlist_time_6%'
    - '%TempVariable%$toptime8=[Replace]%playerlist_time_7%'
    - '%TempVariable%$toptime9=[Replace]%playerlist_time_8%'
    - '%TempVariable%$toptime10=[Replace]%playerlist_time_9%'
    - '10:CLOCK:0:%stayopen%:&e&lТоп по времени:&f;&8Список игроков%ascii_58%;&7#1&f $toptime1 &8- &f%parseother_unsafe_{$toptime1}_{statistic_hours_played}%;&7#2&f $toptime2 &8- &f%parseother_unsafe_{$toptime2}_{statistic_hours_played}%;&7#3&f $toptime3 &8- &f%parseother_unsafe_{$toptime3}_{statistic_hours_played}%;&7#4&f $toptime4 &8- &f%parseother_unsafe_{$toptime4}_{statistic_hours_played}%;&7#5&f $toptime5 &8- &f%parseother_unsafe_{$toptime5}_{statistic_hours_played}%;&7#6&f $toptime6 &8- &f%parseother_unsafe_{$toptime6}_{statistic_hours_played}%;&7#7&f $toptime7 &8- &f%parseother_unsafe_{$toptime7}_{statistic_hours_played}%;&7#8&f $toptime8 &8- &f%parseother_unsafe_{$toptime8}_{statistic_hours_played}%;&7#9&f $toptime9 &8- &f%parseother_unsafe_{$toptime9}_{statistic_hours_played}%;&7#10&f $toptime10 &8- &f%parseother_unsafe_{$toptime10}_{statistic_hours_played}%'
    permission-required: false
    register: true

     

    And the console output:
    [22:02:47] [Server thread/INFO]: notamiary issued server command: /mycmd-reload all
    [22:02:47] [Server thread/INFO]: [MyCmd] Reloaded custom commands. Loaded 11 commands.
    [22:02:48] [Server thread/INFO]: notamiary issued server command: /top
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)
    [22:02:48] [Server thread/INFO]: [Mycmd] Error while trying to parse the iconmenu at the command named : top (top.yml)

     


To post a comment, please login or register a new account.