diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java index ea4a3214e7..38f2aae4da 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java @@ -236,9 +236,10 @@ public Locale getLocale() { @Override public void sendAnnouncements() { if (!WorldEditPlugin.getInstance().getLifecycledBukkitImplAdapter().isValid()) { - printError(TranslatableComponent.of("worldedit.version.bukkit.unsupported-adapter", - TextComponent.of("https://enginehub.org/worldedit/#downloads", TextColor.AQUA) - .clickEvent(ClickEvent.openUrl("https://enginehub.org/worldedit/#downloads")))); + printError(TranslatableComponent.of("worldedit.version.bukkit.unsupported-version") + .append(TextComponent.newline()) + .append(TextComponent.of("https://enginehub.org/worldedit/#downloads", TextColor.AQUA).clickEvent(ClickEvent.openUrl("https://enginehub.org/worldedit/#downloads"))) + ); } } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java b/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java index 246c736c84..a6b8d525f7 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java @@ -59,6 +59,7 @@ import com.sk89q.worldedit.util.eventbus.EventBus; import com.sk89q.worldedit.util.formatting.text.TextComponent; import com.sk89q.worldedit.util.formatting.text.TranslatableComponent; +import com.sk89q.worldedit.util.formatting.text.event.ClickEvent; import com.sk89q.worldedit.util.formatting.text.format.TextColor; import com.sk89q.worldedit.util.io.file.FileSelectionAbortedException; import com.sk89q.worldedit.util.io.file.FilenameException; @@ -751,7 +752,12 @@ public void runScript(Player player, File f, String[] args) throws WorldEditExce try { engine = new RhinoCraftScriptEngine(); } catch (NoClassDefFoundError ignored) { - player.printError(TranslatableComponent.of("worldedit.script.no-script-engine")); + player.printError(TranslatableComponent.of("worldedit.script.missing-script-engine") + .append(TextComponent.newline()) + .append(TranslatableComponent.of("worldedit.script.please-see", + TextComponent.of("https://worldedit.enginehub.org/en/latest/usage/other/craftscripts/", TextColor.AQUA).clickEvent(ClickEvent.openUrl("https://worldedit.enginehub.org/en/latest/usage/other/craftscripts/"))) + ) + ); return; }