
PAPIProxyBridge
A bridge library plugin for using PlaceholderAPI on proxy servers
About this Mod
GitHub — Discord
PAPIProxyBridge is a library bridge plugin you install on both your backend and proxy servers that allows proxy plugins to format text with PlaceholderAPI placeholders.
For server owners
This is a library plugin intended for use with plugins that implement its API. There is nothing to configure.
Install the latest version of the plugin alongside the PlaceholderAPI plugin on your Spigot (1.16.5+) or the PlaceholderAPI mod on your Fabric (1.19.3+) server, then install the plugin on your BungeeCord or Velocity proxy server.
Note this plugin is not a replacement for PlaceholderAPI. You still need to install PlaceholderAPI on your Spigot/Fabric server.
For developers
PAPIProxyBridge exposes a cross-platform API to let you format text with PlaceholderAPI placeholders.
Adding the library to your project
PAPIProxyBridge is available on repo.william278.net (view javadocs here). First, add the maven repository to your build.gradle:
repositories {
maven { url 'https://repo.william278.net/releases/' }
}
Then add the dependency:
dependencies {
implementation 'net.william278:papiproxybridge:1.6'
}
Example usage
The PlaceholderAPI class exposes the API for formatting placeholders. At the moment, only singleton non-bracketed placeholders are supported (more in the future).
Get an instance of the class with PlaceholderAPI.getInstance(), then use the #formatPlaceholders method to format a string with placeholders on a player (specified with UUID for cross-platform simplicity).
The method returns a CompletableFuture (since we don't want to lock threads while the proxy networks with players on the backend) that you can use to accept the formatted string.
// Format a string with placeholders
final PlaceholderAPI api = PlaceholderAPI.createInstance();
final UUID player = player.getUniqueId();
api.formatPlaceholders("Hello %player_name%!", player).thenAccept(formatted -> {
player.sendMessage(formatted);
});
Never invoke #join() on calls to #formatPlaceholders; this is unsafe.
PAPIProxyBridge caches resolved requests for 30000 milliseconds (30 seconds), to avoid causing excessive traffic over your server's network channels. You can adjust how long to cache requests for using the PlaceholderAPI#setCacheExpiry(long) method.
There also exists #formatComponentPlaceholders. This method allows you to supply a string containing placeholders and receive an adventure component containing the formatted text, which may contain formatting and chat events.
Available Versions
How to Install PAPIProxyBridge on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set bungeecord Loader
In the panel under "Egg", select the bungeecord loader and matching Minecraft version (1.21.8).
Install Mod
Open the mod browser in the dashboard and search for "PAPIProxyBridge". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.8, 1.21.7, 1.21.6 (+23 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
PAPIProxyBridge server crashes on startup – what to do?
Most common cause: wrong bungeecord version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.8). You can switch loaders with one click in the panel.
Is PAPIProxyBridge compatible with bungeecord and fabric and folia and paper and spigot and velocity and waterfall?
PAPIProxyBridge officially supports bungeecord, fabric, folia, paper, spigot, velocity, waterfall for Minecraft 1.21.8, 1.21.7, 1.21.6. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with PAPIProxyBridge – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if PAPIProxyBridge consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install PAPIProxyBridge with just one click on your server.