Back to Mods
PlaceholderLib

PlaceholderLib

miscSnoxorus

Placeholder solution for all hytale mods in the making. Together we unite

About PlaceholderLib

PlaceholderLib

A lightweight placeholder API for Hytale plugins. Provides a simple registry system for dynamic text replacement.

Quick Start

1. Add Dependency

dependencies { implementation(files("libs/PlaceholderLib.jar")) } 2. Register Placeholders

public class MyPlugin extends JavaPlugin { @Override public void setup() { // Static placeholder PlaceholderLib.getRegistry().register( new SimplePlaceholder("server_name", "MyServer") );

// Dynamic placeholder PlaceholderLib.getRegistry().register( new Placeholder() { @Override public String getIdentifier() { return "online_count"; }

@Override public String resolve(PlaceholderContext ctx) { return String.valueOf(getServer().getOnlinePlayers().size()); } } ); } } How It Works

Registration: Plugins register placeholders with unique identifiers (no % symbols)

Pattern Matching: PlaceholderLib automatically finds %placeholder_id% patterns in text

Resolution: Registered placeholders replace their patterns with actual values

Fallback: Unregistered placeholders remain unchanged in text

Placeholder Rules

Namespace: pluginid_identifier (e.g., rep_eat_food_level)

Optional hierarchy: pluginid_category_identifier (e.g., frog_team_health, frog_team_score)

Allowed characters: a-z, 0-9, _

Case-sensitive: %rep_eat_food_level% ≠ %Rep_Eat_Food_Level%

Wrap in % when using: %pluginid_identifier%

Example Implementation

public class CustomPlaceholder implements Placeholder { @Override public String getIdentifier() { return "my_custom_value"; }

@Override public String resolve(PlaceholderContext context) { // Access player, world, etc. through context return "custom_value"; } } Build in supported placeholders:

Placeholders: %luckperms_prefix% %luckperms_suffix% %luckperms_group% %player_name% %player_uuid% %player_x% %player_y% %player_z% %player_language%

LuckPerms %luckperms_prefix% %luckperms_suffix% %luckperms_group%

📚 Need Help?

Discord Support: https://discord.gg/U4mH3weTsw

Downloads
107
Created
Jan 20, 2026
Updated
Jan 26, 2026
Version
Early Access

Categories

MiscellaneousQuality of LifeUtilityLibrary

Download Mod

Download on CurseForge
Free download • 107 total downloads

Need a Server?

Run PlaceholderLib on a dedicated Hytale server with easy mod management.

Get Hytale Hosting

Frequently Asked Questions

What is PlaceholderLib?

Placeholder solution for all hytale mods in the making. Together we unite

How do I download PlaceholderLib?

You can download PlaceholderLib for free from CurseForge. Click the "Download on CurseForge" button on this page to go directly to the download page.

Who created PlaceholderLib?

PlaceholderLib was created by Snoxorus. The mod has been downloaded 107 times.

Is PlaceholderLib compatible with Hytale servers?

PlaceholderLib is designed for Hytale and can be used on both single-player and multiplayer servers. Check the mod page on CurseForge for specific compatibility information.

How do I install PlaceholderLib?

To install PlaceholderLib: 1) Download the mod from CurseForge, 2) Place the file in your Hytale mods folder, 3) Restart the game. The mod should load automatically.