Dialog Configuration Options

This page covers all the configuration options available for dialogs, including basic properties, behavior settings, and type-specific configurations.

Basic Dialog Properties

Required Properties

name: "&6&lMy Dialog"           # Internal dialog name (supports color codes)
external_title: "Dialog Title"  # Title displayed in the dialog window
type: notice                    # Dialog type (see Dialog Types page)
  • name - The internal identifier for the dialog. Supports Minecraft color codes and formatting.

  • external_title - The title shown at the top of the dialog window. Plain text only.

  • type - Determines the dialog behavior and available options.

Behavior Settings

General Behavior

can-close-with-escape: true  # Allow ESC key to close dialog
pause: false                 # Pause the game while dialog is open
after_action: CLOSE         # Action after dialog interaction
  • can-close-with-escape (boolean, default: true)

    • true - Players can press ESC to close the dialog

    • false - ESC key is disabled, players must use dialog buttons

  • pause (boolean, default: false)

    • true - Game is paused while dialog is open

    • false - Game continues normally

  • after_action (string, default: CLOSE)

    • CLOSE - Dialog closes after action execution

    • PAUSE - Dialog stays open after action

    • NONE - No specific behavior after action

Type-Specific Configurations

Notice Dialog Configuration

Confirmation Dialog Configuration

Multi-Action Dialog Configuration

Multi-Action Options:

  • number-of-columns - How many buttons to display per row

  • multi-actions - Collection of custom buttons

    • Each button needs: text, tooltip, width, and actions

Advanced Configuration

Custom Styling

Configuration Validation

Common Validation Rules

  1. Width values must be between specified ranges

  2. Dialog types must be one of the supported types

  3. Action structure must follow zMenu action format

  4. YAML syntax must be valid (proper indentation and structure)

Error Prevention

  • Always validate your YAML syntax

  • Test with minimal configurations first

  • Check server logs for configuration errors

  • Use consistent naming conventions

  • Verify all referenced placeholders exist

Performance Considerations

  • Limit concurrent dialogs - Don't show multiple dialogs simultaneously

  • Optimize content size - Large dialogs can impact performance

  • Minimize complex actions - Keep dialog actions lightweight

  • Cache frequently used dialogs - Reuse dialog configurations when possible

Best Practices

  1. Keep it simple - Start with basic configurations and add complexity gradually

  2. Test thoroughly - Always test dialogs with different player scenarios

  3. Use consistent styling - Maintain visual consistency across all dialogs

  4. Document your dialogs - Comment complex configurations for future reference

  5. Plan user flow - Consider what happens before and after the dialog

Last updated