From 338e0a909eb194750a444eafa248b1fc136980c7 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Tue, 16 Oct 2018 20:26:36 +0200 Subject: [PATCH] Added link to portal directions Fixes #13 --- src/main/java/xyz/etztech/qol/commands/PortalCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/xyz/etztech/qol/commands/PortalCommand.java b/src/main/java/xyz/etztech/qol/commands/PortalCommand.java index 85322f8..52b3c83 100644 --- a/src/main/java/xyz/etztech/qol/commands/PortalCommand.java +++ b/src/main/java/xyz/etztech/qol/commands/PortalCommand.java @@ -58,6 +58,11 @@ public class PortalCommand implements CommandExecutor { message.append("\n" + ChatColor.GREEN + "Location in the " + worldStr + ": " + newX + ", " + y + ", " + newZ); EtzTechUtil.sms(commandSender, message.toString()); + // Send link to image for setting up nether portal + TextComponent link = new TextComponent(ChatColor.GREEN + "Click here for directions on how to set up a nether portal."); + link.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://i.imgur.com/tQCbI0C.png")); + commandSender.spigot().sendMessage(link); + return true; } }