Add portal setup config

Signed-off-by: Etzelia <etzelia@hotmail.com>
1.16
Etzelia 2020-07-08 21:46:24 -05:00
parent 0aab560cbb
commit 9a7fd8247c
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
2 changed files with 5 additions and 2 deletions

View File

@ -60,9 +60,9 @@ public class PortalCommand implements CommandExecutor {
message.append("\n" + ChatColor.GREEN + "Location in the " + worldStr + ": " + newX + ", " + y + ", " + newZ); message.append("\n" + ChatColor.GREEN + "Location in the " + worldStr + ": " + newX + ", " + y + ", " + newZ);
EtzTechUtil.sms(commandSender, message.toString()); 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."); 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); commandSender.spigot().sendMessage(link);
return true; return true;

View File

@ -47,6 +47,9 @@ grief-alert:
lines: 5 lines: 5
webhook: '' 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" # The range after which a player will be marked as "outside the border"
worldinfo: worldinfo:
world: 5000 world: 5000