Finish support for greeting/farewall text on area markers

This commit is contained in:
Mike Primm 2020-05-25 13:55:36 -05:00
parent 8cb0e05eb1
commit 8615efc226
17 changed files with 298 additions and 9 deletions

View file

@ -201,4 +201,13 @@ public abstract class BukkitVersionHelper {
}
public abstract String getStateStringByCombinedId(int blkid, int meta);
}
// Send title/subtitle to user
public void sendTitleText(Player p, String title, String subtitle, int fadeInTicks, int stayTicks, int fadeOutTIcks) {
// Do send message for old implementations
if (p != null) {
if (title != null) p.sendMessage(title);
if (subtitle != null) p.sendMessage(subtitle);
}
}
}