forked from Minecraft/QoL
parent
0aab560cbb
commit
9a7fd8247c
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue