mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Adapt adventure changes
This commit is contained in:
parent
55211907f2
commit
77eb75fcc6
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user