From 9a7fd8247c8fb3f3861a5d2e38f9cb298df35c04 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Wed, 8 Jul 2020 21:46:24 -0500 Subject: [PATCH] Add portal setup config Signed-off-by: Etzelia --- src/main/java/xyz/etztech/qol/commands/PortalCommand.java | 4 ++-- src/main/resources/config.yml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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