Functions are the building blocks for customizable guis in DynamicGui. With functions you can customize guis and slots. Below are the built-in functions for DynamicGui, addons may add more. If you are interested in making functions take a look at the developer docs.
The broadcast function is used to send a message to all players on the server.
broadcast: This is a test message!
Broadcasts the message “This is a test message!” to all players.
Check a player’s exp level.
The function would require the player to have level 1000.
Execute Command As Console¶
Executes a command for the player as console.
executec: say Hello from the server!
Executes the say command from console.
Execute Command As Player¶
Makes a player execute a command.
Makes a player execute the spawn command.
Makes a player open a gui.
Makes a player open a gui named “test”.
Checks if a player does not have a permission.
Checks if the player does not have the permission “some.permission”.
Pay with money¶
Allows a player to pay money.
Makes the player pay 1000 if they have the balance avaliable.
Checks if the player has a permission.
Checks if the player has the permission “some.permission”.
Sends the player a message.
Sends the player the message “Hello!”.
Removes the current slot.
Removes the slot from which the function is called.
Send player to server¶
Sends the player to a server.
Sends the player to the server “testserver”.
Set data for slot¶
Set data for the current slot, can be used in 1.12 and below.
Sets the data value of the current slot to 1.
Set enchants for slot¶
Sets enchants for the current slot. Check here for the enchantment enums
Sets the current slot to have level 1 durability.
Set lore for slot¶
Set lore for the current slot.
setlore: test lore
Sets the lore for the current slot to “test lore”.
Also supports multi-line lore.
Sets the lore for the current slot to “test” on the first line and “lore” on the second.
Set name for slot¶
Set name for the current slot.
Sets the name for the current slot to “name”.
Set type for slot¶
Set type for the current slot.
Sets the type for the current slot to “STONE”.
Plays a sound.
Sends a lava sound to the player with 1.0 volume and 0.5 pitch.