From 8454c29c913daf4e4827dd37946a402cad8fb2ea Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Mon, 11 Apr 2022 16:38:02 +0200 Subject: [PATCH] fix: Make PlayerManager#resolveName blocking for entry title (#3556) --- .../main/java/com/plotsquared/core/listener/PlotListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java b/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java index aa7153370..5d3dcfaba 100644 --- a/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java +++ b/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java @@ -309,7 +309,7 @@ public class PlotListener { } if ((lastPlot != null) && plot.getId().equals(lastPlot.getId()) && plot.hasOwner()) { final UUID plotOwner = plot.getOwnerAbs(); - String owner = PlayerManager.resolveName(plotOwner, false).getComponent(player); + String owner = PlayerManager.resolveName(plotOwner, true).getComponent(player); Caption header = fromFlag ? StaticCaption.of(title) : TranslatableCaption.of("titles" + ".title_entered_plot"); Caption subHeader = fromFlag ? StaticCaption.of(subtitle) : TranslatableCaption.of("titles" +