Customization: Editing Placeholders

Prime HUD allows you to visually display various types of data from your server. In this section, you’ll learn how to edit placeholders in the BetterHUD interface and configure conditional color indic

🧩 General Placeholder Integration

You can show dynamic values (like money, gems, jobs, etc.) using PlaceholderAPI (PAPI) placeholders.

Steps

  1. Go to your server's plugins/BetterHUD/layouts/ folder.

  2. Open the .yml file you want to customize (e.g., default-layout.yml).

  3. Locate the section you want to edit (e.g., money, gems, vote_bar, job_bar).

  4. Inside the pattern: field, insert your placeholder.

✅ Example:

money:
  texts:
    1:
      name: default_font
      pattern: "<image:money> <yellow>[papi:vault_eco_balance_formatted]"

🔹 Use square brackets [ ] to wrap the placeholder. 🔹 Start with papi: and do not use percent signs (%).

For example, instead of %vault_eco_balance_formatted%, use:

[papi:vault_eco_balance_formatted]

📊 Conditional Placeholder Display (Ping, TPS, RAM)

You can make values like ping, TPS, and RAM change color or icon based on the current value.

Steps:

  1. Go to plugins/BetterHUD/layouts/ and open your HUD file.

  2. Find the relevant section: ping, tps, or ram.

  3. Use the conditions: field to define logic-based visuals.

✅ Example (Ping):

In this example:

  • If the player's ping is less than or equal to 120 ms, it will display with a green icon and green text.

  • You can add more conditions: blocks to define yellow and red thresholds too.

🛠️ Tip: You can copy the structure above and create dynamic behavior for any numerical placeholder, such as player level, votes, etc.

Last updated