Examples

Here are complete, working examples of different dialog types that you can use as templates for your own dialogs.

Example 1: Simple Notice Dialog

A basic welcome dialog for new players.

name: "&6&lWelcome Dialog"
external_title: "Welcome to our server!"
type: notice

can-close-with-escape: true
pause: false
after_action: CLOSE

body:
  welcome_message:
    type: plain_message
    messages:
      - "&6&lWelcome to our amazing server!"
      - ""
      - "&7Server Name: &f%server_name%"
      - "&7Your Name: &f%player_name%"
      - "&7Players Online: &f%server_online%"
      - ""
      - "&eEnjoy your stay and have fun!"
    width: 400

notice:
  text: "&a&lI Understand"
  tooltip: "&7Click to continue"
  width: 200

actions:
  1:
    success:
      - type: message
        messages:
          - "&aWelcome to the server!"

Example 2: Confirmation Dialog with Inputs

A feedback collection dialog with confirmation.

Example 3: Multi-Action Server Navigation

A dialog for server navigation with multiple options.

Example 4: Enhanced Dialog with Items

A dialog showcasing items with rich content.

Usage Tips

  1. Start simple - Begin with basic notice dialogs before adding complexity

  2. Test incrementally - Add one feature at a time and test

  3. Use meaningful names - Choose clear file names and internal names

  4. Plan your flow - Think about what happens after the dialog closes

  5. Consider your audience - Design dialogs appropriate for your server's players

Common Mistakes to Avoid

  • Missing required fields - Always include name, external_title, and type

  • Incorrect indentation - YAML is sensitive to proper spacing

  • Overly wide content - Keep widths reasonable for different screen sizes

  • Too much text - Break up long content into multiple sections

  • Forgetting actions - Always provide feedback for player interactions

Last updated