#ForgeMenus player command on item not working

1 messages · Page 1 of 1 (latest)

rose slate
#

I just edited the basic example provided to do help command on item click but it just says 'An unexpected error occured trying to execute that command' in the chat, and no errors in the console

# ##########################################
# ####                                  ####
# ####      ForgeMenus by Envyful       ####
# ####  https://discord.gg/7vqgtrjDGw   ####
# ####                                  ####
# ##########################################

_comment: Example config made by Envyful :)
commands:
    direct-access: true
    aliases: [ examplemenu, forgeexamplemenu ]
inventory:
    identifier: example_menu
    update-ticks: '20'
    allow-natural-close: true
    permission: menu.example_menu
    name: Example
    height: 2
    open-commands: [ 'console:msg %forge_name% WELL DONE!' ]
    close-commands: [ 'console:msg %forge_name% WELL DONE!', 'console:msg %forge_name% Test', 'player:help', 'player:pay Envyful 1' ]
    items:
        one:
            positionX: 0
            positionY: 0
            type: 902
            amount: 1
            name: This is an item name! §bBLUE
            lore: [ §bLore line 1!, §bLore line 2! ]
            commands: [ 'player:help' ]
        two:
            slots: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 ]
            type: 603
            amount: 1
            name: '%forge_name% - Wow placeholders?'
            tooltip: ''
            commands:
                one:
                    types: [ RIGHT, SHIFT_RIGHT, LEFT, SHIFT_LEFT, MIDDLE ]
                    commands: [ 'console:kill %forge_name%' ]

plucky canopyBOT
worn carbon
#

why do you use player: and console: ?
Just pay or kill do not work alone ?
Because if you use /console:kill NAMEOFTHEPLAYER in minecraft, i dont think that work

rose slate
#

This is how the mod determines who the source of the command should be

#

Its not the command namespace.