Added link to portal directions

Fixes #13
master
Etzelia 2018-10-16 20:26:36 +02:00
parent 022ad810da
commit 338e0a909e
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}
}