add papi version to user agent

This commit is contained in:
PiggyPiglet
2026-02-14 17:24:31 +08:00
parent c8f73a5940
commit 984ec7f7b9

View File

@@ -62,7 +62,7 @@ public final class CloudExpansionManager {
@NotNull @NotNull
private static final String API_URL = "https://ecloud.placeholderapi.com/api/v3/?platform=bukkit"; private static final String API_URL = "https://ecloud.placeholderapi.com/api/v3/?platform=bukkit";
@NotNull @NotNull
public static final String USER_AGENT = "PlaceholderAPI-Bukkit"; public static final String USER_AGENT = "PlaceholderAPI-Bukkit-" + PlaceholderAPIPlugin.getInstance().getPluginMeta().getVersion();
@NotNull @NotNull
private static final Gson GSON = new Gson(); private static final Gson GSON = new Gson();