Creating a Simple Dialog
This guide will walk you through creating your first dialog step by step.
Step 1: Create the Dialog File
Create a new file in your dialogs/ folder with a .yml extension:
plugins/zMenu/dialogs/welcome-dialog.ymlStep 2: Basic Configuration
Start with the essential dialog properties:
name: "&6&lWelcome Dialog"
external_title: "Welcome to our server!"
type: noticeRequired Fields
name- The internal name of the dialog (supports color codes)external_title- The title shown in the dialog windowtype- The dialog type (notice,confirmation,multi_action,server_links)
Step 3: Behavior Settings
Configure how the dialog behaves:
Behavior Options
can-close-with-escape- Allow players to close with ESC keypause- Pause the game while dialog is openafter_action- What happens after interaction:CLOSE,PAUSE, orNONE
Step 4: Add Content
The body section contains what players see:
Step 5: Configure the Action Button
For a notice dialog, add the button configuration:
Complete Simple Dialog Example
Here's a complete working dialog:
Step 6: Test Your Dialog
To test your dialog, you can:
Use the dialog command:
/zmenu dialogs open welcome-dialogTrigger it through an action
Tips for Simple Dialogs
Keep messages concise - Players don't like to read walls of text
Use placeholders - Make content dynamic with player/server data
Choose appropriate widths - 300-500 pixels work well for most content
Add visual breaks - Use empty lines (
"") to separate content sectionsTest on different screen sizes - Ensure your dialog looks good everywhere
Next Steps
Once you're comfortable with simple dialogs, explore:
Different dialog types for various use cases
Adding interactive inputs for data collection
Using items and advanced body elements
Creating complex multi-action dialogs
Last updated