This repository was archived by the owner on Mar 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Menu
Justin edited this page Dec 25, 2021
·
2 revisions
The Menu API is meant to make the hassle of creating Minecraft GUIs easier. From being able to create a Menu with code, or a configuration section. The JustAPI Menu API makes it easier than ever.
Currently there are three internal menu actions, these are actions that can be defined via a configuration file. These actions are ran when a player clicks on the Menu Item.
An internal action is defined as follows: <ACTION IDENTIFIER>:<ARGS|(MORE ARGS)>
| Action Identifier | Description | Example |
|---|---|---|
| RUN_CONSOLE_COMMAND | This will run the defined commands as console. | RUN_CONSOLE_COMMAND:time set day |
| RUN_PLAYER_COMMAND | This will run the defined commands as the player who clicks. | RUN_PLAYER_COMMAND:home|feed |
| SEND_MESSAGE | This will send the defined messages to the player who clicks. | SEND_MESSAGE:Hi there player!|&cThis is a second message |
| Placeholder | Description |
|---|---|
| %player% | The player's name who clicks the item. |
To define an internal menu action you must add them to the "Actions" list under the Menu Item.
Magic-Book:
Slot: 1
Material: "ENCHANTED_BOOK"
Name: "&d&lMagic Book"
Actions:
- "RUN_CONSOLE_COMMAND:effect give %player% minecraft:jump_boost"
Lore:
- "Click for a magic effect!"As you can see, this allows the user to achieve much more without needing developer assistance.