
Can't open GUIs inside of a GUI
TheSpotSMP opened this issue · 13 comments
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
Have you tried using KEEP-OPEN: true
? It will prevent Chest Commands from closing the GUI
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.
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'
FZDNSZYT issued server command: /chestcommands RELOAD
[21:12:27 INFO]: [ChestCommands] Encountered 5 error(s) on load:
-
The icon "command /openplugingui" in the menu "menu/example.yml" has an invalid attribute "description": unknown attribute.
-
The icon "command /openplugingui" in the menu "menu/example.yml" has an invalid attribute "trigger": unknown attribute.
-
The icon "command /openplugingui" in the menu "menu/example.yml" is missing the attribute "POSITION-X".
-
The icon "command /openplugingui" in the menu "menu/example.yml" is missing the attribute "POSITION-Y".
-
The icon "command /openplugingui" in the menu "menu/example.yml" is missing the attribute "MATERIAL".
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.
I'm sorry, I do not speak English. I use Google Translate to communicate with you. There may be obstacles, I'm really sorry.
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"
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.
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.