PlaceholderLib
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
Categories
Need a Server?
Run PlaceholderLib on a dedicated Hytale server with easy mod management.
Get Hytale HostingFrequently 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.
Related Misc Mods
View all modsYmmersive Melodies
Conczin
Upload and play MIDI files in-game on various instruments to annoy your friends with custom melodies!
MultipleHUD
Buuz135
A simple mod that allows you to have multiple HUDs present at once.
Spanish Translation
Plexu5
A Spanish language translation for Hytale. Includes UI, items, and menus.
YUNG's HyDungeons
YUNGNICKYOUNG
Adds new procedurally generated dungeon instances!
Just Enough Tales (JEI mod)
uwudwagon
A JEI mod for Hytale.
[NoCube's] Simple Bags
NoCube
Adds bags that you can put anything in!