Easy Placeholders
  • Easy Placeholders
  • Getting Started
    • Features
    • Installation Guide
      • Support
  • Customize!
    • Config.yml
      • Operators
      • Example Configs
    • Complicated Configs
      • Placeholder Splitting
      • Placeholder Combining
      • Placeholder Math
      • Multiple (Splitting + Combining)
    • Animated Placeholders
    • Formatting
  • Placeholder Editing
  • My Other Plugins
    • EasyBrushes
Powered by GitBook
On this page
  • Basic Structure
  • Placeholder Types
  • Priority System
  1. Customize!

Config.yml

New versions of this plugin allows you to add it in any file and any subfolder not just config.yml

Basic Structure

The configuration file uses YAML format and follows this structure:

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.

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.

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:

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.

PreviousSupportNextOperators

Last updated 2 months ago