Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (68 sloc) 5.94 KB

DeluxeMenus

Options & Configurations

The page is divided into 2 sections, GUI options and then Item options. GUI options are what comes first in the configuration, and the Item options are for any items defined underneath the "items:" section of the GUI config.

Type Description
TEXT Replace this with any text. Check the description to find out if you can use color/formatting codes.
BOOLEAN Replace this with true or false (If used with PlaceholderAPI for view_requirements this may be yes/no instead of true/false [This is the default configuration for PlaceholderAPI]).
EXPRESSION A java/placeholder expression/comparison. See this page for more information.
# Replace this with a number. Check the description to see if there are limits.
SOUND Replace this with the sound name.
COMMAND Replace this with the command you want without slash "/"
Command Permission Default
/dm - yes
/dm open <menu> deluxemenus.open yes
/dm list deluxemenus.list no
/dm reload deluxemenus.reload no
/dm open <menu> <player> deluxemenus.open.others no

Example GUI Menus

To make this work fine you have to download PlaceholderAPI, Essentials and download the Essentials expansion using:

/papi ecloud download Essentials
/papi reload

Here I show a ranks example that was created by @clip and I am now bringing it live (with a few modest changes). This mines gui requires EZRanksPro in order to function properly, of course you can still edit what you need to. Hope you enjoy.

To make this work fine you have to download PlaceholderAPI and download the Player, EzRanksPro expansions using:

/papi ecloud download Player
/papi ecloud download EzRanksPro
/papi reload

To make this work fine you have to download PlaceholderAPI and download the Pinger and (optional) Server expansion using:

/papi ecloud download Pinger
/papi ecloud download Server
/papi reload

In this example, we have 2 different servers on one BungeeCord: vanilla and games. We are on the server games in this example.

If we now want, that the player should be able to connect to the server vanilla, we need to setup the right functions in the section left_click_commands:
In our example, we will first close the menu with [close], send a message to the viewer of the menu with [message] and finally connect to the server with [connect].
You can use the name of the server, that you set in the config of your BungeeCord.

To show, how many players are on the server vanilla, we will use the placeholder %pingerplayers:%
You can use the name you set in the config of the BungeeCord, or just use the IP with the port.
Please keep in mind, that the updateinterval of the pinger-placeholders are different from the other placeholder.
To change the updateinterval, go to the PlaceholderAPI-folder and change the interval (default is 30) in the config.
But what if the server is currently offline?
In this case, we can use a second item with a lower priority, that will be displayed, if the view_requirement: of the first item aren't true.
So now we can show a different item, if the server is offline. But we have still one problem. DeluxeMenu doesn't update the item by itself, if the view_requirement have changed (from Offline to Online).
We can fix that, by let the player execute [refresh], if he clicks on the item.

The second item is easier. Because we are already connected, we just need to send a message. And we can show the amount of players on the server with the %server_online% placeholder.

To make this work fine you have to download PlaceholderAPI and download the Player expansion using:

/papi ecloud download CheckItem # needed
/papi ecloud download Player # needed
/papi ecloud download TokenEnchant # optional
/papi ecloud download PlayerPoints # optional
/papi reload

You can’t perform that action at this time.