From 77eb75fcc664d1365c39c612f87790fc26e39aaf Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Thu, 20 Aug 2020 23:28:42 +0200 Subject: [PATCH] Adapt adventure changes --- .../main/java/com/plotsquared/core/player/PlotPlayer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java b/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java index b8c123495..172e6e2a8 100644 --- a/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java +++ b/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java @@ -818,10 +818,11 @@ public abstract class PlotPlayer

implements CommandCaller, OfflinePlotPlayer, final Component titleComponent = MiniMessage.get().parse(title.getComponent(this), replacements); final Component subtitleComponent = MiniMessage.get().parse(subtitle.getComponent(this), replacements); - getAudience().showTitle(Title - .of(titleComponent, subtitleComponent, Duration.of(fadeIn * 50, ChronoUnit.MILLIS), + final Title.Times times = Title.Times.of(Duration.of(fadeIn * 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,