From c013b92e626dc08d9ea18f8596042bb73b1cc1d4 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sun, 15 Oct 2023 14:05:04 +0200 Subject: [PATCH] Address deprecated 'Times#of()' in 'PlotPlayer' (#4207) --- Core/build.gradle.kts | 2 -- Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/build.gradle.kts b/Core/build.gradle.kts index 87e47df83..e78732baf 100644 --- a/Core/build.gradle.kts +++ b/Core/build.gradle.kts @@ -72,8 +72,6 @@ tasks { opt.links("https://jd.advntr.dev/text-minimessage/4.14.0/") opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") opt.links("https://checkerframework.org/api/") - opt.links("https://javadocs.dev/com.intellectualsites.informative-annotations/informative-annotations/" - + libs.informativeAnnotations.get().versionConstraint.toString()) opt.isLinkSource = true opt.bottom(File("$rootDir/javadocfooter.html").readText()) opt.isUse = true 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 10e68174b..611e8d868 100644 --- a/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java +++ b/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java @@ -882,7 +882,7 @@ public abstract class PlotPlayer

implements CommandCaller, OfflinePlotPlayer, final Component titleComponent = MiniMessage.miniMessage().deserialize(title.getComponent(this), replacements); final Component subtitleComponent = MiniMessage.miniMessage().deserialize(subtitle.getComponent(this), replacements); - final Title.Times times = Title.Times.of( + final Title.Times times = Title.Times.times( Duration.of(Settings.Titles.TITLES_FADE_IN * 50L, ChronoUnit.MILLIS), Duration.of(Settings.Titles.TITLES_STAY * 50L, ChronoUnit.MILLIS), Duration.of(Settings.Titles.TITLES_FADE_OUT * 50L, ChronoUnit.MILLIS)