# Configs

### Basic Structure

The configuration file uses YAML format and follows this structure:

```yaml
placeholders:
  yourplaceholder:
    placeholders:
      - 'condition1'
      - 'condition2'
    output: 'result'
```

### Placeholder Types

#### 1. Simple Placeholder

Simple placeholders create custom placeholders outputs using only 1 Placeholder as its input.

```yaml
placeholders:
  custom1:
    placeholders:
      - '%player_name% == Junkeh'
    output: '<red>Yes'
```

#### 2. Multi-Type Placeholder

Multi-Type Placeholders checks for multiple placeholders at once, you can either make it output if those 2 placeholders are met, or you could make it so it can change outputs depending on the placeholder.

```yaml
meow:
  types:
    - priority: 1
      placeholders:
        - '%player_name% == Junkeh'
        - '%player_is_op% == yes'
      output: '&#ff00ff:33'
    
    - priority: 2
      placeholders:
        - '%player_is_op% == yes'
      output: '<gold>:3'
```

### Priority System

Lower numbers have higher priority:

```yaml
types:
  - priority: 1  # Highest priority
    placeholders:
      - '%player_level% >= 50'
    output: '<gold>High Level'
  
  - priority: 2  # Medium priority
    placeholders:
      - '%player_level% >= 25'
    output: '<yellow>Mid Level'
```

Types without priority get lowest priority.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://junkeh.gitbook.io/easyph/customize/editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
