Skip to content

CraftlyWorks/hypsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hypsum

hypsum is a simple way to add placeholders to Hytale servers. It lets you show dynamic information in messages and text.

πŸ— Project Structure

  • api: What you use to make your own placeholders.
  • core: How the placeholders are actually handled.
  • plugin: The main plugin you install on your server.
  • example-plugin: A simple example to show you how it works.

πŸš€ Features

  • ⚑ Fast: Works quickly without slowing down your server.
  • πŸ›‘ Safe: No infinite loops or broken messages.
  • πŸ‘€ Player Names: Can show different things for different players.
  • βš™οΈ Customizable: Change how your placeholders look (like using {} instead of %%).

πŸ’» Developer Guide

The latest version of Hypsum API is 1.1. Add Hypsum API to your project using your build tool of choice.

🐘 Gradle

Add this to your build.gradle or build.gradle.kts:

Kotlin

dependencies {
    compileOnly("com.craftlyworks.hypsum:api:1.1")
}

Groovy

dependencies {
    compileOnly 'com.craftlyworks.hypsum:api:1.1'
}

🦒 Maven

Add this to your pom.xml:

<dependency>
    <groupId>com.craftlyworks.hypsum</groupId>
    <artifactId>api</artifactId>
    <version>1.1</version>
    <scope>provided</scope>
</dependency>

πŸ“ Create a Placeholder

Here is how you add a new placeholder:

import com.craftlyworks.hypsum.api.HypsumProvider;
import com.craftlyworks.hypsum.api.placeholder.Placeholder;

HypsumApi api = HypsumProvider.get();
api.registerPlaceholder(new Placeholder() {
    @Override
    public String getIdentifier() {
        return "my_placeholder";
    }

    @Override
    public String getValue(PlayerRef player) {
        return "Hello, " + player.getDisplayName();
    }
});

πŸ” Use your Placeholders

To replace placeholders in a string:

String text = "Welcome %my_placeholder%!";
String result = HypsumProvider.get().process(player, text);
// Result: "Welcome Hello, PlayerName!"

Make sure to add Hypsum as a dependency in your plugin manifest.json to use these features. If you want an optional integration, use OptionalDependencies instead.

{
  "Dependencies": {
    "com.craftlyworks.hypsum:Hypsum": ">=1.1"
  }
}

Enjoy coding with Hypsum! πŸ”₯

πŸ›  Building

To build the project, we use Gradle and Java 25+. Run this command in the root directory:

./gradlew build

Β© 2026 CraftlyWorks | Licensed under MIT License

About

πŸ—οΈ Hypsum is a lightweight placeholder API for Hytale plugins.

Topics

Resources

License

Stars

Watchers

Forks

Languages