From 9c1db4b48a3de5b0e5d7e275d00d546ad3509f44 Mon Sep 17 00:00:00 2001 From: PiggyPiglet Date: Mon, 2 Feb 2026 17:29:15 +0800 Subject: [PATCH] fix newlines in ecloud command error & restrict api to bukkit platform --- .../clip/placeholderapi/commands/impl/cloud/CommandECloud.java | 2 +- .../placeholderapi/expansion/manager/CloudExpansionManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/commands/impl/cloud/CommandECloud.java b/src/main/java/me/clip/placeholderapi/commands/impl/cloud/CommandECloud.java index 872f12e..745abe9 100644 --- a/src/main/java/me/clip/placeholderapi/commands/impl/cloud/CommandECloud.java +++ b/src/main/java/me/clip/placeholderapi/commands/impl/cloud/CommandECloud.java @@ -119,7 +119,7 @@ public final class CommandECloud extends PlaceholderCommand { } if (!target.getLabel().equalsIgnoreCase("refresh") && plugin.getCloudExpansionManager().isEmpty()) { - Msg.msg(sender, "&cThere is no available data from the eCloud. Please try running &f/papi ecloud refresh&c. If this does not resolve the issue, the eCloud may be blocked by your firewall, server host, or service provider.\n\nMore information: &fhttps://placeholderapi.com/ecloud-blocked"); + Msg.msg(sender, "&cThere is no available data from the eCloud. Please try running &f/papi ecloud refresh&c. If this does not resolve the issue, the eCloud may be blocked by your firewall, server host, or service provider.\n&r\n&cMore information: &fhttps://placeholderapi.com/ecloud-blocked"); return; } diff --git a/src/main/java/me/clip/placeholderapi/expansion/manager/CloudExpansionManager.java b/src/main/java/me/clip/placeholderapi/expansion/manager/CloudExpansionManager.java index 0f739c1..6c830d8 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/manager/CloudExpansionManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/manager/CloudExpansionManager.java @@ -63,7 +63,7 @@ import org.jetbrains.annotations.Unmodifiable; public final class CloudExpansionManager { @NotNull - private static final String API_URL = "https://ecloud.placeholderapi.com/api/v3/"; + private static final String API_URL = "https://ecloud.placeholderapi.com/api/v3/?platform=bukkit"; @NotNull private static final Gson GSON = new Gson();