Back to mods
fPlaceholders project artwork

CurseForge · Hytale mod

fPlaceholders

A powerful mod for placeholders on the Hytale server (javascript included)

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which fPlaceholders release should I use?

Updated 5 months ago
Latest stable file fPlaceholders.jar
Game version Not listed
Mod system Built-in Hytale mod system

fPlaceholders.jar targets Hytale. Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer. No required dependencies listed for this file.

Where it goes

Where should fPlaceholders be installed in Hytale?

Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

Separate client mod Not supported
World host / dedicated server Required
Mod system for this release Built-in Hytale mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

Put Hytale mods on the world host or dedicated server. Singleplayer runs a local server too; Hytale does not use separate client mods.

What else does fPlaceholders.jar need?

fPlaceholders.jar. Change the file and its required mods may change too.

No required dependencies listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional project dependencies. Check the creator notes before changing an existing world.

Before you install it

Add fPlaceholders without breaking your instance.

Built for fPlaceholders.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use fPlaceholders.jar. It targets Hytale; another release may target a different game build or dependency set.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Enable it on the world host

    Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside fPlaceholders.jar. It opens that exact file at the source.

About this project

What does fPlaceholders add?

Getting Started

Installation:
  1. Download the latest version from Releases or CurseForge.
  2. Install it into the server's mods folder.
  3. Start the server.
Commands:
  • /placeholders check (argument) - Check any placeholder in real-time.
  • /placeholders reload - Reload the plugin.
Permissions:
  • fplaceholders.check - Permission to use the check command.
  • fplaceholders.reload - Permission to use the reload command.

Javascript

The mod allows using Javascript code for placeholders. All scripts are located in the javascript folder in the plugin's root directory. Scripts do not need to be registered in the main configuration; it happens automatically.

File: test.js

function checked() {
    return "Hello, Friend";
}

checked();

Usage - %javascript_test%

Examples showing different use cases:

var placeholder = papi("%player_prefix%");

function checked() {
    return placeholder;
}

checked();
var placeholder = player.getUsername();

function checked() {
    return placeholder;
}

checked();

! The (player) object is provided to every .js placeholder called for a player. If called without a player context, it returns null.

Extensions

You can create your own plugins using the API. You can also create mini-scripts (.jar) that are placed directly into the fPlaceholders/plugins folder.

Maven:

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io&lt;/url&gt;
        </repository>
    </repositories>
    <dependency>
        <groupId>com.github.FLOERKA</groupId>
        <artifactId>fPlaceholders</artifactId>
        <version>Version</version>
    </dependency>

Gradle:

        repositories {
            mavenCentral()
            maven { url 'https://jitpack.io' }
        }
    dependencies {
            implementation 'com.github.FLOERKA:fPlaceholders:Tag'
    }

Example of using the API to create placeholders:

package ru.floerka.placeholdertest;  

import com.hypixel.hytale.server.core.Message;  
import com.hypixel.hytale.server.core.universe.PlayerRef;  
import ru.floerka.placeholders.api.CustomPlaceholder;  
import ru.floerka.placeholders.manager.models.ExecutePlaceholder;  

public class CustomExpansion extends CustomPlaceholder {  
    @Override  
  public String getAuthor() {  
        return "floerka";  
    }  

    @Override  
  public String getPrefix() {  
        return "test";  
    }  

    @Override  
  public String onServerRequest(ExecutePlaceholder placeholder) {  
        String arg = placeholder.getArgs()[0];  
        return "You entered: " + arg;  
    }  

    @Override  
  public String onPlayerRequest(PlayerRef playerRef, ExecutePlaceholder placeholder) {  
        String arg = placeholder.getArgs()[0];  
        playerRef.sendMessage(Message.raw("You used a placeholder!"));  
        return "You entered: " + arg;  
    }  
}

Project description from CurseForge.

Recent files

fPlaceholders releases and Hytale builds

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.