Adapt adventure changes

This commit is contained in:
Hannes Greule 2020-08-20 23:28:42 +02:00
parent 55211907f2
commit 77eb75fcc6

View File

@ -818,10 +818,11 @@ public abstract class PlotPlayer<P> implements CommandCaller, OfflinePlotPlayer,
final Component titleComponent = MiniMessage.get().parse(title.getComponent(this), replacements); final Component titleComponent = MiniMessage.get().parse(title.getComponent(this), replacements);
final Component subtitleComponent = final Component subtitleComponent =
MiniMessage.get().parse(subtitle.getComponent(this), replacements); MiniMessage.get().parse(subtitle.getComponent(this), replacements);
getAudience().showTitle(Title final Title.Times times = Title.Times.of(Duration.of(fadeIn * 50, ChronoUnit.MILLIS),
.of(titleComponent, subtitleComponent, Duration.of(fadeIn * 50, ChronoUnit.MILLIS),
Duration.of(stay * 50, ChronoUnit.MILLIS), Duration.of(stay * 50, ChronoUnit.MILLIS),
Duration.of(fadeOut * 50, ChronoUnit.MILLIS))); Duration.of(fadeOut * 50, ChronoUnit.MILLIS));
getAudience().showTitle(Title
.of(titleComponent, subtitleComponent, times));
} }
@Override public void sendMessage(@Nonnull final Caption caption, @Override public void sendMessage(@Nonnull final Caption caption,