Langue

PAPIProxyBridge

PAPIProxyBridge

ModrinthSpigotMC

A bridge library plugin for using PlaceholderAPI on proxy servers

42.8k téléchargements 83 abonnés mis à jour 5mo ago
dernière v1.8.4-c4d2079 Modrinth
Bungeecord Fabric Folia Paper Spigot Velocity Waterfall 1.16.5 – 1.21.8 Library
GitHubDiscord

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.

Versions

Alpha
1.8.4-c4d2079
velocity · 1.17.1, 1.18, 1.18.1 · 5mo ago
build: bump bungee dip to 1.21
2.5k
Alpha
1.8.4-c4d2079
bungeecord, waterfall · 1.17.1, 1.18, 1.18.1 · 5mo ago
build: bump bungee dip to 1.21
101
Alpha
1.8.4-c4d2079
fabric · 1.21.8 · 5mo ago
build: bump bungee dip to 1.21
100
Alpha
1.8.4-c4d2079
fabric · 1.21.5 · 5mo ago
build: bump bungee dip to 1.21
26
Alpha
1.8.4-c4d2079
fabric · 1.21.4 · 5mo ago
build: bump bungee dip to 1.21
130
Alpha
1.8.4-c4d2079
fabric · 1.21.1 · 5mo ago
build: bump bungee dip to 1.21
124
Alpha
1.8.4-c4d2079
fabric · 1.20.1 · 5mo ago
build: bump bungee dip to 1.21
64
Alpha
1.8.4-c4d2079
folia, paper, spigot · 1.17.1, 1.18, 1.18.1 · 5mo ago
build: bump bungee dip to 1.21
2.4k
Alpha
1.8.4-d479e5c
velocity · 1.17.1, 1.18, 1.18.1 · 9mo ago
feat(build): add Fabric mappings and versions for 1.21.8 (#225)
3.1k
Alpha
1.8.4-d479e5c
bungeecord, waterfall · 1.17.1, 1.18, 1.18.1 · 9mo ago
feat(build): add Fabric mappings and versions for 1.21.8 (#225)
93
Alpha
1.8.4-d479e5c
fabric · 1.21.8 · 9mo ago
feat(build): add Fabric mappings and versions for 1.21.8 (#225)
131
Alpha
1.8.4-d479e5c
fabric · 1.21.5 · 9mo ago
feat(build): add Fabric mappings and versions for 1.21.8 (#225)
65

Commentaires 0

Aucun commentaire pour l'instant. Sois le premier à donner ton avis.

Télécharger PAPIProxyBridge

SpigotMC
A 1.8.4-c4d2079 1.17.1, 1.18, 1.18.1 velocity 4.9 MB A 1.8.4-c4d2079 1.17.1, 1.18, 1.18.1 bungeecord, waterfall 5.5 MB A 1.8.4-c4d2079 1.21.8 fabric 6.2 MB A 1.8.4-c4d2079 1.21.5 fabric 6.2 MB A 1.8.4-c4d2079 1.21.4 fabric 6.2 MB A 1.8.4-c4d2079 1.21.1 fabric 6.1 MB A 1.8.4-c4d2079 1.20.1 fabric 5.9 MB A 1.8.4-c4d2079 1.17.1, 1.18, 1.18.1 folia, paper, spigot 975 KB A 1.8.4-d479e5c 1.17.1, 1.18, 1.18.1 velocity 4.9 MB A 1.8.4-d479e5c 1.17.1, 1.18, 1.18.1 bungeecord, waterfall 5.5 MB A 1.8.4-d479e5c 1.21.8 fabric 6.2 MB A 1.8.4-d479e5c 1.21.5 fabric 6.2 MB A 1.8.4-d479e5c 1.21.4 fabric 6.2 MB A 1.8.4-d479e5c 1.21.1 fabric 6.1 MB A 1.8.4-d479e5c 1.20.1 fabric 5.9 MB A 1.8.4-d479e5c 1.17.1, 1.18, 1.18.1 folia, paper, spigot 974 KB R 1.8.4 1.17.1, 1.18, 1.18.1 velocity 4.9 MB R 1.8.4 1.17.1, 1.18, 1.18.1 bungeecord, waterfall 5.5 MB R 1.8.4 1.21.7 fabric 6.2 MB R 1.8.4 1.21.5 fabric 6.2 MB R 1.8.4 1.21.4 fabric 6.2 MB R 1.8.4 1.21.1 fabric 6.1 MB R 1.8.4 1.20.1 fabric 5.9 MB R 1.8.4 1.17.1, 1.18, 1.18.1 folia, paper, spigot 974 KB A 1.8.4-52bdeba 1.17.1, 1.18, 1.18.1 velocity 4.9 MB A 1.8.4-52bdeba 1.17.1, 1.18, 1.18.1 bungeecord, waterfall 5.4 MB A 1.8.4-52bdeba 1.21.7 fabric 6.2 MB A 1.8.4-8783487 1.17.1, 1.18, 1.18.1 velocity 4.9 MB A 1.8.4-8783487 1.17.1, 1.18, 1.18.1 bungeecord, waterfall 5.5 MB A 1.8.4-52bdeba 1.21.5 fabric 6.2 MB A 1.8.4-8783487 1.21.7 fabric 6.2 MB A 1.8.4-52bdeba 1.21.4 fabric 6.2 MB A 1.8.4-8783487 1.21.5 fabric 6.2 MB A 1.8.4-52bdeba 1.21.1 fabric 6.1 MB A 1.8.4-8783487 1.21.4 fabric 6.2 MB A 1.8.4-52bdeba 1.20.1 fabric 5.9 MB A 1.8.4-8783487 1.21.1 fabric 6.1 MB A 1.8.4-52bdeba 1.17.1, 1.18, 1.18.1 folia, paper, spigot 858 KB A 1.8.4-8783487 1.20.1 fabric 5.9 MB A 1.8.4-8783487 1.17.1, 1.18, 1.18.1 folia, paper, spigot 974 KB A 1.8.4-2c82fef 1.17.1, 1.18, 1.18.1 velocity 4.9 MB A 1.8.4-2c82fef 1.17.1, 1.18, 1.18.1 bungeecord, waterfall 5.4 MB A 1.8.4-2c82fef 1.21.7 fabric 6.2 MB A 1.8.4-2c82fef 1.21.5 fabric 6.2 MB A 1.8.4-2c82fef 1.21.4 fabric 6.2 MB A 1.8.4-2c82fef 1.21.1 fabric 6.1 MB A 1.8.4-2c82fef 1.20.1 fabric 5.9 MB A 1.8.4-2c82fef 1.17.1, 1.18, 1.18.1 folia, paper, spigot 974 KB A 1.8.4-9dbe32d 1.17.1, 1.18, 1.18.1 velocity 4.9 MB A 1.8.4-9dbe32d 1.17.1, 1.18, 1.18.1 bungeecord, waterfall 5.4 MB

Les fichiers proviennent directement de la source d'origine. Modgrid ne les héberge ni ne les modifie.