Project Settings

Project Settings are project-specific settings that can vary between different projects. They are stored in the project's YAML files.


Overview

Storage Location

Project settings can be saved to different YAML sections:

YAML Key
File/Section
Use Case

configs

config.yml

Main project configuration

environment

Environment config

Environment-specific settings

serverProperties

Server properties

Minecraft server properties format

Key Characteristics

  • Scope: Per-project

  • Format: YAML

  • Persistence: Stored in project files

  • Isolation: Each project has independent settings


Section Types

type: "settings"

Standard form with configurable elements.

type: "category"

Visual category header for organizing tabs.

type: "separator"

Horizontal divider line between sections.

type: "custom"

Custom HTML rendering with full control.


Creating Project Settings

Basic Example

Organized Example with Categories


Reading Project Settings

Using YAML API

Reading from Different YAML Keys


Custom Sections

For advanced UIs, create custom HTML rendering:


Best Practices

1. Use Appropriate YAML Keys

2. Organize with Categories

3. Provide Clear Labels

4. Use Separators


Common Patterns

Feature Configuration

Debug Settings


Troubleshooting

Settings Not Saving

Problem: Settings don't persist.

Solutions:

  1. Verify yamlKey is valid ('configs', 'environment', or 'serverProperties')

  2. Check console for YAML write errors

  3. Ensure element IDs don't conflict with existing keys

Settings Not Loading

Problem: Can't read settings values.

Solutions:

  1. Use correct yamlKey when reading

  2. Provide fallback values

  3. Check if project is loaded correctly


Next Steps

  • Learn about Element Types →

  • Create Custom Elements →

  • See complete examples →

Last updated