diff --git a/src/main/java/xyz/etztech/qol/commands/PortalCommand.java b/src/main/java/xyz/etztech/qol/commands/PortalCommand.java index f9f9c2c..3972eea 100644 --- a/src/main/java/xyz/etztech/qol/commands/PortalCommand.java +++ b/src/main/java/xyz/etztech/qol/commands/PortalCommand.java @@ -60,9 +60,9 @@ 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 + // Send link to instructions 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")); + link.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, plugin.getConfig().getString("portal-link", "https://i.imgur.com/tQCbI0C.png"))); commandSender.spigot().sendMessage(link); return true; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index a3696db..aa1ea83 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -47,6 +47,9 @@ grief-alert: lines: 5 webhook: '' +# The link to open for portal setup instructions +portal-link: 'https://i.imgur.com/tQCbI0C.png' + # The range after which a player will be marked as "outside the border" worldinfo: world: 5000