Home›Java›Mods›VillPlaceholder
VillPlaceholder
Create Your Own Placeholders: Conditional Logic, Mathematics & More

A simple yet powerful plugin for creating custom placeholders.
You can create basic placeholders, nested placeholders, conditional structures that output different values based on conditions, or even mathematical placeholders.

Examples:
Spoiler: examples
Code (YAML):
# Conditional Placeholder Example[/B]
[B ]day_or_night: [/B ]
[B]  day_or_night
: # %vp_day_or_night%[/B]
[B ]     # If %server_time_HH% is less than 18, use this value[/B]
[B]    - condition
: "%server_time_HH% < 18" [/B ]
[B]      value
: "&eIt's daytime" # Output to placeholder[/B]
[B ] [/B ]
[B ]     # If the previous condition didn't match, check the next one.[/B]
[B ]     # If greater than or equal to 18 but less than 23[/B]
[B]    - condition
: "%server_time_HH% >= 18 && %server_time_HH% < 23" [/B ]
[B]      value
: "&6It's evening" [/B ]
[B ] [/B ]
[B ]     # Executes if none of the above conditions were met[/B]
[B]    - condition
: "else" [/B ]
[B]      value
: "&9It's night" [/B ]
[B ] [/B ]
[B ] # Mathematical Placeholders[/B]
[B ]math_placeholders: [/B ]
[B ]   # Calculates how many blocks the player has mined + 100[/B]
[B]  blocks_left
: "100 + %statistic_mine_block%" [/B ]
[B ]   # Supported operators: +, -, *, /, and expressions in parentheses ()



P.S. With this plugin, you can create entire quest lines!

The plugin includes a convenient GUI for viewing and copying placeholders.


config.yml:
Code (YAML):
placeholders :
  # Simple colored server name placeholder
  servername
: "&#FFEE00&lS&#FFE200&lE&#FFD500&lR&#FFC900&lV&#FFBC00&lE&#FFB000&lR"

  # Nested placeholder example
  welcome_user
: "&7Hello, &#00FFCD%player_name%&7! Welcome."

conditional_placeholders
:
  day_or_night
: # %vp_day_or_night%
    # If %server_time_HH% is less than 18, use this value
    - condition
: "%server_time_HH% < 18"
      value
: "&eIt's daytime" # Output to placeholder

    # If the previous condition didn't match, check the next one.
    # If greater than or equal to 18 but less than 23
    - condition
: "%server_time_HH% >= 18 && %server_time_HH% < 23"
      value
: "&6It's evening"

    # Executes if none of the above conditions were met
    - condition
: "else"
      value
: "&9It's night"

math_placeholders
:
  # Calculates how many blocks the player has mined + 100
  blocks_left
: "100 + %statistic_mine_block%"
  # Supported operators: +, -, *, /, and expressions in parentheses ()

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

VillPlaceholder is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 5 times (via Spigot). Download it and open it directly in the game.

Explore more