@Override
public void execute(SignActionEvent info) {
if (!info.isAction(SignActionType.GROUP_ENTER, SignActionType.REDSTONE_ON) || !info.hasGroup() || !info.isPowered()) {
return;
}
Portal portal = Portal.get(info.getLocation());
if (portal == null) {
return;
}
String destname = portal.getDestinationName();
Location dest = Portal.getPortalLocation(destname, info.getGroup().getWorld().getName());
if (dest != null) {
//Teleport the ENTIRE train to the destination...
Block sign = dest.getBlock();
sign.getChunk(); //load the chunk