Chest Commands

Chest Commands

1M Downloads

Can't open GUIs inside of a GUI

TheSpotSMP opened this issue · 13 comments

commented

Description

When trying to perform a command that would open another gui inside of a GUI it instantly closes.

How to reproduce

Add a GUI command into a chestcommands gui and click it.

Platform

  • Server version (output of /version): 1.16.5 Purpur
  • Chest Commands version (check with /cc): 4.0.4-SNAPSHOT-B75

Additional context

commented
commented

Have you tried using KEEP-OPEN: true? It will prevent Chest Commands from closing the GUI

commented

Where can I download the script of the friend above, thank you

commented

Thank you, I will try it later. thank you very much.

commented

ChestCommands is the best MENU plugin I have ever used. Dear author. Up to now, there is no MENU configuration interface that can match you. in my heart.

commented

Here is the script. I have tested it now.

command /openplugingui:
    description: Closes the inventory and opens another one
    trigger:
        close player's inventory
        wait 3 ticks
        make player execute command "say hello"

Here is the ChestCommand icon

open-plugin-menu:
  MATERIAL: barrier
  POSITION-X: 9
  POSITION-Y: 3
  NAME: '&cOpen Other Menu'
  LORE:
    - 'Opens another plugins gui'
  ACTIONS:
    - 'openplugingui'
commented

FZDNSZYT issued server command: /chestcommands RELOAD
[21:12:27 INFO]: [ChestCommands] Encountered 5 error(s) on load:

  1. The icon "command /openplugingui" in the menu "menu/example.yml" has an invalid attribute "description": unknown attribute.

  2. The icon "command /openplugingui" in the menu "menu/example.yml" has an invalid attribute "trigger": unknown attribute.

  3. The icon "command /openplugingui" in the menu "menu/example.yml" is missing the attribute "POSITION-X".

  4. The icon "command /openplugingui" in the menu "menu/example.yml" is missing the attribute "POSITION-Y".

  5. The icon "command /openplugingui" in the menu "menu/example.yml" is missing the attribute "MATERIAL".

commented

May I ask if I should add command /openplugingui:
description: Closes the inventory and opens another one
trigger:
close player's inventory
wait 3 ticks
Where is the make player execute command "companions" script? When I put it in the menu file under the MENU directory, the following error occurred.

commented

I'm sorry, I do not speak English. I use Google Translate to communicate with you. There may be obstacles, I'm really sorry.

commented

Sorry, I wasn't very clear with the previous comment, there is a separate plugin called "Skript" at this website and i wrote a file for that. After installing the plugin, place the file below in your minecraft server at "/plugins/Skript/scripts/openplugingui.sk" then start the server.
then it should work.

command /openplugingui:
    description: Closes the inventory and opens another one
    trigger:
        close player's inventory
        wait 3 ticks
        make player execute command "say hello"
commented

If you want to open another chest commands GUI you can use:

  ACTIONS:
    - 'open: shop.yml'

But in terms of other plugin's' GUI, we'll just have to wait for the author to fix this.

commented

Yes, I did use ChestCommands to open the GUI of other plugins. I am in trouble, and the system prompts me to open it successfully. And there are sound effects, but the GUI interface will crash. Cannot be displayed.

commented

Mine is the same. I can’t open the GUI of other plugins in the menu. I hope the author will solve this problem as soon as possible.