Skip to content

Menu System

Narimm edited this page Jul 6, 2018 · 3 revisions

Menu System

As of Minigames 1.6, you can now bring up a menu to modify a Minigame. The menu is an interactive GUI created using the inventory and customised items. Many of these items have specific actions, depending on whether you left click, right click or double click. This page is to display what each of the menu item types do, and how to use them. Most of these values also have a manual input, which can usually be achieved by double clicking a menu item. When entering an input, you'll have to type the value directly into chat (not a command), once complete, the menu will reopen.

Integer (Number Input)

Integer menu items are fairly simple, but have a lot of different interactions. Integer items can also have limits implemented on them, upper and lower. Trying to modify the number past this will not work.

Left Click: Increment number by 1.

Right Click: Decrement number by 1.

Shift + Left Click: Increment number by 10.

Shift + Right Click: Decrement number by 10.

Double Click: Manual number input (into chat).

Time (An extension of Integer)

Time inputs are exactly the same as integer inputs, but instead of displaying the number, it will be formatted into a time display. Manual input currently must be in seconds.

String (Text Input)

String menu items allow for directly entering a string value. These only have manual entry and have no other way of modifying.

Double Click: Manual string input (into chat). If enabled on the item, the value can also be set to “null” to clear any entered data.

List (Multiple choice)

List menu items allow for selecting of items from a list. The green highlighted item is the currently selected item on the list and the grey items above and below are the previous and next items on the list.

Left Click: Select the next item on the list.

Right Click: Select the previous item on the list.

Double Click: Manually input a named item on the list (into chat).

Boolean (True or False options)

Boolean menu items are very simple and toggle between true and false states.

Left Click: Toggle state.

Rewards

Add Reward

Adding Rewards is achieved easily using this menu item. You can select any item from your inventory and click on this menu item (with the item picked up on your cursor) to add it to the rewards section. This can include enchanted items, items modified with lore and special named items.

Left Click with Item: Add the selected item to the rewards with the default reward rarity of “Normal”.

Left Click: If the server has the Vault plugin. You can enter a money reward into chat.

Reward Item

Once a reward is added to the menu, its rarity can be modified by interacting with it. This basically extends from the list menu item.

Left Click: Select next rarity. Right Click: Select previous rarity. Shift + Right Click: Delete reward item (will ask for confirmation in chat).

Add Reward Group

Adding reward groups act similarly to rewards, but aren't clicked with an item.

Left Click: Add a reward group (name of group must be entered into chat).

Reward Group

The reward group is similar to the reward item, however it can be opened to modify its contents.

Left Click: Select next rarity. Right Click: Select previous rarity. Shift + Right Click: Delete reward item (will ask for confirmation in chat). Double Click: Opens the reward group to add rewards to it.

Potions

Adding Potions

The add potions menu item will let you add a potion effect to a loadout. Potions can only be added via manual entry (chat) and use a special syntax:

PotionName, level, duration (duration can be “inf”)

Inf means a potion effect will be infinite. For a list of potion effect names, see Potion Effects.

Left Click: Add potion effect.

Removing Potions

Removing potions can be achieved by shift + right clicking on the potion menu item that you wish to remove.

Shift + Right Click: Removes the potion effect.